Browse code

fix some warnings

Tomasz Kojm authored on 2010/05/12 21:59:50
Showing 2 changed files
... ...
@@ -49,6 +49,8 @@
49 49
 #include "target.h"
50 50
 #include "clamav.h"
51 51
 
52
+#include "libclamav/others.h"
53
+
52 54
 #include "shared/optparser.h"
53 55
 #include "shared/output.h"
54 56
 #include "shared/misc.h"
... ...
@@ -1471,7 +1471,7 @@ static int updatedb(const char *dbname, const char *hostname, char *ip, int *sig
1471 1471
 	const struct optstruct *opt;
1472 1472
 	unsigned int nodb = 0, currver = 0, newver = 0, port = 0, i, j, newsigs = 0;
1473 1473
 	int ret, ims = -1;
1474
-	char *pt, cvdfile[32], localname[32], *tmpdir = NULL, *newfile, *newfile2, newdb[32], cwd[512];
1474
+	char *pt, cvdfile[32], localname[32], *tmpdir = NULL, *newfile, *newfile2, newdb[32];
1475 1475
 	char extradbinfo[64], *extradnsreply = NULL;
1476 1476
 	const char *proxy = NULL, *user = NULL, *pass = NULL, *uas = NULL;
1477 1477
 	unsigned int flevel = cl_retflevel(), remote_flevel = 0, maxattempts;