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 bd4cbe4..6d40cad 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 b08ce65..978e9f7 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 c63ae04..2ece2f6 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);