Browse code

Remove icc warnings

git-svn: trunk@2670

Nigel Horne authored on 2007/02/01 21:43:50
Showing 3 changed files
... ...
@@ -1,12 +1,16 @@
1
-Thu Feb  1 11:50:00 GMT 2007
1
+Thu Feb  1 12:42:56 GMT 2007 (njh)
2
+----------------------------------
3
+  * libclamav:	Remove some warnings from icc
4
+
5
+Thu Feb  1 11:50:00 GMT 2007 (njh)
2 6
 ----------------------------------
3 7
   * libclamav/hashtab.c:	Fix compilation error on earlier OpenBSDs
4
-  		(patch from Edwin)
8
+		(patch from Edwin)
5 9
 
6 10
 Thu Feb  1 08:02:50 GMT 2007 (njh)
7 11
 ----------------------------------
8 12
   * libclamav/entconv.c:	Fix compilation error on earlier OpenBSDs
9
-  		(patch from Edwin)
13
+		(patch from Edwin)
10 14
 
11 15
 Thu Feb  1 00:47:48 CET 2007 (tk)
12 16
 ---------------------------------
... ...
@@ -52,7 +56,7 @@ Sun Jan 28 21:20:05 CET 2007 (tk)
52 52
 Sat Jan 27 13:54:35 CET 2007 (acab)
53 53
 -----------------------------------
54 54
   * libclamav/pe.c: fix debug message logic, fixed handling of non aligned raw
55
-  		    data
55
+		    data
56 56
 
57 57
 Fri Jan 26 20:49:07 CET 2007 (acab)
58 58
 -----------------------------------
... ...
@@ -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.60 2006/12/22 08:13:46 njh Exp $";
19
+static	char	const	rcsid[] = "$Id: blob.c,v 1.61 2007/02/01 12:42:18 njh Exp $";
20 20
 
21 21
 #if HAVE_CONFIG_H
22 22
 #include "clamav-config.h"
... ...
@@ -519,7 +519,7 @@ fileblobAddData(fileblob *fb, const unsigned char *data, size_t len)
519 519
 					*ctx->scanned += (unsigned long)len / CL_COUNT_PRECISION;
520 520
 				fb->bytes_scanned += (unsigned long)len;
521 521
 
522
-				if((len > 5) && (cli_scanbuff(data, (unsigned int)len, ctx->virname, ctx->engine, 0) == CL_VIRUS)) {
522
+				if((len > 5) && (cli_scanbuff(data, (unsigned int)len, ctx->virname, ctx->engine, CL_TYPE_UNKNOWN_DATA) == CL_VIRUS)) {
523 523
 					cli_dbgmsg("fileblobAddData: found %s\n", *ctx->virname);
524 524
 					fb->isInfected = 1;
525 525
 				}
... ...
@@ -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: mbox.c,v 1.372 2007/01/25 13:59:56 njh Exp $";
19
+static	char	const	rcsid[] = "$Id: mbox.c,v 1.373 2007/02/01 12:42:18 njh Exp $";
20 20
 
21 21
 #ifdef	_MSC_VER
22 22
 #include <winsock.h>	/* only needed in CL_EXPERIMENTAL */
... ...
@@ -1096,7 +1096,7 @@ save_text(cli_ctx *ctx, const char *dir, const char *start, size_t len)
1096 1096
 		 *	in this way. It gets the "filetype" wrong and then
1097 1097
 		 *	doesn't scan correctly
1098 1098
 		 */
1099
-		if(cli_scanbuff((char *)p, len, ctx->virname, ctx->engine, 0) == CL_VIRUS) {
1099
+		if(cli_scanbuff((char *)p, len, ctx->virname, ctx->engine, CL_TYPE_UNKNOWN_DATA) == CL_VIRUS) {
1100 1100
 			cli_dbgmsg("save_text: found %s\n", *ctx->virname);
1101 1101
 			return CL_VIRUS;
1102 1102
 		}