Fix compiler warning

git-svn: trunk@2551
remotes/push_mirror/metadata
Nigel Horne 19 years ago
parent f9d522eaa9
commit 155a1c63f4
  1. 4
      clamav-devel/libclamav/blob.c
  2. 5
      clamav-devel/libclamav/uuencode.c

@ -16,7 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
static char const rcsid[] = "$Id: blob.c,v 1.57 2006/10/16 00:33:34 tkojm Exp $";
static char const rcsid[] = "$Id: blob.c,v 1.58 2006/12/11 11:51:14 njh Exp $";
#if HAVE_CONFIG_H
#include "clamav-config.h"
@ -500,7 +500,7 @@ fileblobAddData(fileblob *fb, const unsigned char *data, size_t len)
if(fb->ctx->scanned)
*fb->ctx->scanned += (unsigned long)len / CL_COUNT_PRECISION;
if((len > 5) && (cli_scanbuff((char *)data, (unsigned int)len, fb->ctx->virname, fb->ctx->engine, 0) == CL_VIRUS)) {
if((len > 5) && (cli_scanbuff(data, (unsigned int)len, fb->ctx->virname, fb->ctx->engine, 0) == CL_VIRUS)) {
cli_dbgmsg("fileblobAddData: found %s\n", *fb->ctx->virname);
fb->isInfected = 1;
}

@ -16,7 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
static char const rcsid[] = "$Id: uuencode.c,v 1.7 2006/10/09 09:23:25 njh Exp $";
static char const rcsid[] = "$Id: uuencode.c,v 1.8 2006/12/11 11:55:11 njh Exp $";
#include "clamav.h"
@ -31,6 +31,9 @@ static char const rcsid[] = "$Id: uuencode.c,v 1.7 2006/10/09 09:23:25 njh Exp $
#include <stdio.h>
#include <memory.h>
#include <sys/stat.h>
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
#include "others.h"
#include "str.h"

Loading…
Cancel
Save