Browse code

Fix compiler warning

git-svn: trunk@2551

Nigel Horne authored on 2006/12/11 20:55:11
Showing 2 changed files
... ...
@@ -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: blob.c,v 1.57 2006/10/16 00:33:34 tkojm Exp $";
19
+static	char	const	rcsid[] = "$Id: blob.c,v 1.58 2006/12/11 11:51:14 njh Exp $";
20 20
 
21 21
 #if HAVE_CONFIG_H
22 22
 #include "clamav-config.h"
... ...
@@ -500,7 +500,7 @@ fileblobAddData(fileblob *fb, const unsigned char *data, size_t len)
500 500
 			if(fb->ctx->scanned)
501 501
 				*fb->ctx->scanned += (unsigned long)len / CL_COUNT_PRECISION;
502 502
 
503
-			if((len > 5) && (cli_scanbuff((char *)data, (unsigned int)len, fb->ctx->virname, fb->ctx->engine, 0) == CL_VIRUS)) {
503
+			if((len > 5) && (cli_scanbuff(data, (unsigned int)len, fb->ctx->virname, fb->ctx->engine, 0) == CL_VIRUS)) {
504 504
 				cli_dbgmsg("fileblobAddData: found %s\n", *fb->ctx->virname);
505 505
 				fb->isInfected = 1;
506 506
 			}
... ...
@@ -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: uuencode.c,v 1.7 2006/10/09 09:23:25 njh Exp $";
19
+static	char	const	rcsid[] = "$Id: uuencode.c,v 1.8 2006/12/11 11:55:11 njh Exp $";
20 20
 
21 21
 #include "clamav.h"
22 22
 
... ...
@@ -31,6 +31,9 @@ static	char	const	rcsid[] = "$Id: uuencode.c,v 1.7 2006/10/09 09:23:25 njh Exp $
31 31
 #include <stdio.h>
32 32
 #include <memory.h>
33 33
 #include <sys/stat.h>
34
+#ifdef	HAVE_STRINGS_H
35
+#include <strings.h>
36
+#endif
34 37
 #include "others.h"
35 38
 #include "str.h"
36 39