git-svn: trunk@2097
Nigel Horne authored on 2006/07/18 23:58:21... | ... |
@@ -1,3 +1,13 @@ |
1 |
+Tue Jul 18 15:57:33 BST 2006 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav/message.c: Fixed compilation warning messages |
|
4 |
+ |
|
5 |
+Tue Jul 18 09:30:03 BST 2006 (njh) |
|
6 |
+---------------------------------- |
|
7 |
+ * clamav-milter: Blacklist: remove IP addresses that have timedout as we |
|
8 |
+ look them up (previously they were only cleaned in |
|
9 |
+ the watchdog) |
|
10 |
+ |
|
1 | 11 |
Tue Jul 18 12:54:39 CEST 2006 (tk) |
2 | 12 |
---------------------------------- |
3 | 13 |
* sigtool/sigtool.c: --diff: detect removal of last lines |
... | ... |
@@ -16,7 +16,7 @@ |
16 | 16 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
17 | 17 |
* MA 02110-1301, USA. |
18 | 18 |
*/ |
19 |
-static char const rcsid[] = "$Id: message.c,v 1.179 2006/07/15 20:32:49 njh Exp $"; |
|
19 |
+static char const rcsid[] = "$Id: message.c,v 1.180 2006/07/18 14:56:04 njh Exp $"; |
|
20 | 20 |
|
21 | 21 |
#if HAVE_CONFIG_H |
22 | 22 |
#include "clamav-config.h" |
... | ... |
@@ -75,9 +75,6 @@ static unsigned char hex(char c); |
75 | 75 |
static unsigned char base64(char c); |
76 | 76 |
static unsigned char uudecode(char c); |
77 | 77 |
static const char *messageGetArgument(const message *m, int arg); |
78 |
-/* |
|
79 |
- * http://oopweb.com/CPP/Documents/FunctionPointers/Volume/CCPP/callback/callback.html |
|
80 |
- */ |
|
81 | 78 |
static void *messageExport(message *m, const char *dir, void *(*create)(void), void (*destroy)(void *), void (*setFilename)(void *, const char *, const char *), void (*addData)(void *, const unsigned char *, size_t), void *(*exportText)(text *, void *, int), void (*setCTX)(void *, cli_ctx *), int destroy_text); |
82 | 79 |
static int usefulArg(const char *arg); |
83 | 80 |
static void messageDedup(message *m); |
... | ... |
@@ -1552,7 +1549,14 @@ messageToFileblob(message *m, const char *dir, int destroy) |
1552 | 1552 |
fileblob *fb; |
1553 | 1553 |
|
1554 | 1554 |
cli_dbgmsg("messageToFileblob\n"); |
1555 |
- fb = messageExport(m, dir, (void *)fileblobCreate, (void *)fileblobDestroy, (void *)fileblobSetFilename, (void *)fileblobAddData, (void *)textToFileblob, (void *)fileblobSetCTX, destroy); |
|
1555 |
+ fb = messageExport(m, dir, |
|
1556 |
+ (void *(*)(void))fileblobCreate, |
|
1557 |
+ (void(*)(void *))fileblobDestroy, |
|
1558 |
+ (void(*)(void *, const char *, const char *))fileblobSetFilename, |
|
1559 |
+ (void(*)(void *, const unsigned char *, size_t))fileblobAddData, |
|
1560 |
+ (void *(*)(text *, void *, int))textToFileblob, |
|
1561 |
+ (void(*)(void *, cli_ctx *))fileblobSetCTX, |
|
1562 |
+ destroy); |
|
1556 | 1563 |
if(destroy && m->body_first) { |
1557 | 1564 |
textDestroy(m->body_first); |
1558 | 1565 |
m->body_first = m->body_last = NULL; |
... | ... |
@@ -1567,7 +1571,14 @@ messageToFileblob(message *m, const char *dir, int destroy) |
1567 | 1567 |
blob * |
1568 | 1568 |
messageToBlob(message *m, int destroy) |
1569 | 1569 |
{ |
1570 |
- blob *b = messageExport(m, NULL, (void *)blobCreate, (void *)blobDestroy, (void *)blobSetFilename, (void *)blobAddData, (void *)textToBlob, NULL, destroy); |
|
1570 |
+ blob *b = messageExport(m, NULL, |
|
1571 |
+ (void *(*)(void))blobCreate, |
|
1572 |
+ (void(*)(void *))blobDestroy, |
|
1573 |
+ (void(*)(void *, const char *, const char *))blobSetFilename, |
|
1574 |
+ (void(*)(void *, const unsigned char *, size_t))blobAddData, |
|
1575 |
+ (void *(*)(text *, void *, int))textToBlob, |
|
1576 |
+ (void(*)(void *, cli_ctx *))NULL, |
|
1577 |
+ destroy); |
|
1571 | 1578 |
|
1572 | 1579 |
if(destroy && m->body_first) { |
1573 | 1580 |
textDestroy(m->body_first); |