Browse code

cosmetic fixes

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@417 77e5149b-7576-45b1-b177-96237e5ba77b

Tomasz Kojm authored on 2004/03/19 23:57:03
Showing 3 changed files
... ...
@@ -1,3 +1,8 @@
1
+Fri Mar 19 16:00:51 CET 2004 (tk)
2
+---------------------------------
3
+  * libclamav: small cosmetic fixes in format strings, also added some
4
+	       statics (thanks to Dirk Mueller <dmuell*gmx.net>)
5
+
1 6
 Fri Mar 19 08:18:24 GMT 2004 (njh)
2 7
 ----------------------------------
3 8
   * libclamav/mbox.c:	If an RFC822 message is found as part of a multipart
... ...
@@ -32,13 +32,14 @@
32 32
 
33 33
 #include "clamav.h"
34 34
 #include "others.h"
35
+#include "dsig.h"
35 36
 
36
-const char *cli_nstr = "118640995551645342603070001658453189751527774412027743746599405743243142607464144767361060640655844749760788890022283424922762488917565551002467771109669598189410434699034532232228621591089508178591428456220796841621637175567590476666928698770143328137383952820383197532047771780196576957695822641224262693037"; /* 1024 bits */
37
+static const char *cli_nstr = "118640995551645342603070001658453189751527774412027743746599405743243142607464144767361060640655844749760788890022283424922762488917565551002467771109669598189410434699034532232228621591089508178591428456220796841621637175567590476666928698770143328137383952820383197532047771780196576957695822641224262693037"; /* 1024 bits */
37 38
 
38
-const char *cli_estr = "100001027";
39
+static const char *cli_estr = "100001027";
39 40
 
40 41
 
41
-char cli_ndecode(char value)
42
+static char cli_ndecode(char value)
42 43
 {
43 44
 	int i;
44 45
 	char ncodec[] = {
... ...
@@ -61,7 +62,7 @@ char cli_ndecode(char value)
61 61
     return -1;
62 62
 }
63 63
 
64
-char *cli_decodesig(const char *sig, int plainlen, mpz_t e, mpz_t n)
64
+static char *cli_decodesig(const char *sig, int plainlen, mpz_t e, mpz_t n)
65 65
 {
66 66
 	int i, siglen = strlen(sig), dec;
67 67
 	char *decoded;
... ...
@@ -209,8 +209,8 @@ static int cli_scanrar(int desc, const char **virname, long int *scanned, const
209 209
 	}
210 210
 
211 211
 	if(limits) {
212
-	    if(limits->maxfilesize && (rarlist->item.UnpSize > limits->maxfilesize)) {
213
-		cli_dbgmsg("RAR->%s: Size exceeded (%d, max: %d)\n", rarlist->item.Name, rarlist->item.UnpSize, limits->maxfilesize);
212
+	    if(limits->maxfilesize && (rarlist->item.UnpSize > (unsigned int) limits->maxfilesize)) {
213
+		cli_dbgmsg("RAR->%s: Size exceeded (%u, max: %lu)\n", rarlist->item.Name, (unsigned int) rarlist->item.UnpSize, limits->maxfilesize);
214 214
 		rarlist = rarlist->next;
215 215
 		files++;
216 216
 		/* ret = CL_EMAXSIZE; */
... ...
@@ -241,7 +241,7 @@ static int cli_scanrar(int desc, const char **virname, long int *scanned, const
241 241
 	fd = fileno(tmp);
242 242
 
243 243
 	if( urarlib_get(&rar_data_ptr, &rar_data_size, rarlist->item.Name, desc, "clam")) {
244
-	    cli_dbgmsg("RAR -> Extracted: %s, size: %d\n", rarlist->item.Name, rar_data_size);
244
+	    cli_dbgmsg("RAR -> Extracted: %s, size: %lu\n", rarlist->item.Name, rar_data_size);
245 245
 	    if(fwrite(rar_data_ptr, 1, rar_data_size, tmp) != rar_data_size) {
246 246
 		cli_dbgmsg("RAR -> Can't write() file.\n");
247 247
 		fclose(tmp);
... ...
@@ -380,7 +380,7 @@ static int cli_scanzip(int desc, const char **virname, long int *scanned, const
380 380
 
381 381
 	if(limits) {
382 382
 	    if(limits->maxfilesize && (zdirent.st_size > limits->maxfilesize)) {
383
-		cli_dbgmsg("Zip -> %s: Size exceeded (%d, max: %d)\n", zdirent.d_name, zdirent.st_size, limits->maxfilesize);
383
+		cli_dbgmsg("Zip -> %s: Size exceeded (%d, max: %ld)\n", zdirent.d_name, zdirent.st_size, limits->maxfilesize);
384 384
 		files++;
385 385
 		/* ret = CL_EMAXSIZE; */
386 386
 		continue; /* this is not a bug */