git-svn: trunk@4400
Török Edvin authored on 2008/11/14 01:00:18... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Thu Nov 13 16:46:46 EET 2008 (edwin) |
|
2 |
+------------------------------------ |
|
3 |
+ * libclamav/others.c: move cli_rarload. TODO: MEMFUNSONLY should be |
|
4 |
+ a separate file! |
|
5 |
+ |
|
1 | 6 |
Thu Nov 13 16:27:57 EET 2008 (edwin) |
2 | 7 |
------------------------------------ |
3 | 8 |
* contrib/clamdtop/Makefile, contrib/clamdtop/clamdtop.c: select a |
... | ... |
@@ -111,6 +111,22 @@ static unsigned char name_salt[16] = { 16, 38, 97, 12, 8, 4, 72, 196, 217, 144, |
111 | 111 |
fputs(buff, stderr); \ |
112 | 112 |
va_end(args) |
113 | 113 |
|
114 |
+void cli_warnmsg(const char *str, ...) |
|
115 |
+{ |
|
116 |
+ MSGCODE("LibClamAV Warning: "); |
|
117 |
+} |
|
118 |
+ |
|
119 |
+void cli_errmsg(const char *str, ...) |
|
120 |
+{ |
|
121 |
+ MSGCODE("LibClamAV Error: "); |
|
122 |
+} |
|
123 |
+ |
|
124 |
+void cli_dbgmsg_internal(const char *str, ...) |
|
125 |
+{ |
|
126 |
+ MSGCODE("LibClamAV debug: "); |
|
127 |
+} |
|
128 |
+ |
|
129 |
+#ifndef CLI_MEMFUNSONLY |
|
114 | 130 |
int (*cli_unrar_open)(int fd, const char *dirname, unrar_state_t *state); |
115 | 131 |
int (*cli_unrar_extract_next_prepare)(unrar_state_t *state, const char *dirname); |
116 | 132 |
int (*cli_unrar_extract_next)(unrar_state_t *state, const char *dirname); |
... | ... |
@@ -144,22 +160,6 @@ static void cli_rarload(void) { |
144 | 144 |
have_rar = 1; |
145 | 145 |
} |
146 | 146 |
|
147 |
-void cli_warnmsg(const char *str, ...) |
|
148 |
-{ |
|
149 |
- MSGCODE("LibClamAV Warning: "); |
|
150 |
-} |
|
151 |
- |
|
152 |
-void cli_errmsg(const char *str, ...) |
|
153 |
-{ |
|
154 |
- MSGCODE("LibClamAV Error: "); |
|
155 |
-} |
|
156 |
- |
|
157 |
-void cli_dbgmsg_internal(const char *str, ...) |
|
158 |
-{ |
|
159 |
- MSGCODE("LibClamAV debug: "); |
|
160 |
-} |
|
161 |
- |
|
162 |
-#ifndef CLI_MEMFUNSONLY |
|
163 | 147 |
void cl_debug(void) |
164 | 148 |
{ |
165 | 149 |
cli_debug_flag = 1; |