clamav plugin: use cl_strerror() instead of deprecated cl_perror()
authorPaul Mangan <paul@claws-mail.org>
Thu, 11 Dec 2003 10:55:27 +0000 (10:55 +0000)
committerPaul Mangan <paul@claws-mail.org>
Thu, 11 Dec 2003 10:55:27 +0000 (10:55 +0000)
ChangeLog.claws
configure.ac
src/plugins/clamav/clamav_plugin.c

index bd4cbe497d1fb8fe95e2171ec4e2974da105fb89..6d40cada04a0d09a54ba68883c80174c9f656533 100644 (file)
@@ -1,3 +1,10 @@
+2003-12-11 [paul]      0.9.7claws36
+
+       * src/plugins/clamav/clamav_plugin.c
+               fix (don't break) signature count
+               use cl_strerror() instead of deprecated cl_perror()
+               
+       
 2003-12-11 [darko]     0.9.7claws35
 
        * src/summaryview.c
index b08ce6572e0d381aaf196ff975b7d52ad9a54f6f..978e9f7718db54661d8f43e515f5b45f73facc6c 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=7
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=35
+EXTRA_VERSION=36
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index c63ae0491937f18a783f702878f2719467514516..2ece2f6e125748f78adad175100adb32a383a744 100644 (file)
@@ -88,7 +88,7 @@ static gboolean scan_func(GNode *node, gpointer data)
                } else {
                        debug_print("No virus detected.\n");
                        if (ret != CL_CLEAN)
-                               debug_print("Error: %s\n", cl_perror(ret));
+                               debug_print("Error: %s\n", cl_strerror(ret));
                }
 
                unlink(outfile);
@@ -125,10 +125,10 @@ static gboolean mail_filtering_hook(gpointer source, gpointer data)
                params.scan_archive = TRUE;
 
        if((ret = cl_loaddbdir(cl_retdbdir(), &params.root, &no))) {
-               debug_print("cl_loaddbdir: %s\n", cl_perror(ret));
+               debug_print("cl_loaddbdir: %s\n", cl_strerror(ret));
                exit(2);
        }
-       debug_print("Database loaded (containing in total %d signatures)\n", no / 2);
+       debug_print("Database loaded (containing in total %d signatures)\n", no);
 
        cl_buildtrie(params.root);