Browse code

freshclam/manager.c: remove unused parameter (bb#1280)

git-svn: trunk@4352

Tomasz Kojm authored on 2008/11/07 22:31:55
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Fri Nov  7 13:28:49 CET 2008 (tk)
2
+---------------------------------
3
+ * freshclam/manager.c: remove unused parameter (bb#1280)
4
+
1 5
 Fri Nov  7 13:20:08 CET 2008 (tk)
2 6
 ---------------------------------
3 7
  * freshclam/manager.c: improve reporting of server failures (bb#777)
... ...
@@ -1133,7 +1133,7 @@ static int getfile(const char *srcfile, const char *destfile, const char *hostna
1133 1133
     return 0;
1134 1134
 }
1135 1135
 
1136
-static int getcvd(const char *cvdfile, const char *newfile, const char *hostname, char *ip, const char *localip, const char *proxy, int port, const char *user, const char *pass, const char *uas, int nodb, unsigned int newver, int ctimeout, int rtimeout, struct mirdat *mdat, int logerr, unsigned int can_whitelist)
1136
+static int getcvd(const char *cvdfile, const char *newfile, const char *hostname, char *ip, const char *localip, const char *proxy, int port, const char *user, const char *pass, const char *uas, unsigned int newver, int ctimeout, int rtimeout, struct mirdat *mdat, int logerr, unsigned int can_whitelist)
1137 1137
 {
1138 1138
 	struct cl_cvd *cvd;
1139 1139
 	int ret;
... ...
@@ -1580,7 +1580,7 @@ static int updatedb(const char *dbname, const char *hostname, char *ip, int *sig
1580 1580
     newfile = cli_gentemp(cwd);
1581 1581
 
1582 1582
     if(nodb) {
1583
-	ret = getcvd(cvdfile, newfile, hostname, ip, localip, proxy, port, user, pass, uas, nodb, newver, ctimeout, rtimeout, mdat, logerr, can_whitelist);
1583
+	ret = getcvd(cvdfile, newfile, hostname, ip, localip, proxy, port, user, pass, uas, newver, ctimeout, rtimeout, mdat, logerr, can_whitelist);
1584 1584
 	if(ret) {
1585 1585
 	    memset(ip, 0, 16);
1586 1586
 	    free(newfile);
... ...
@@ -1614,7 +1614,7 @@ static int updatedb(const char *dbname, const char *hostname, char *ip, int *sig
1614 1614
 	    cli_rmdirs(tmpdir);
1615 1615
 	    free(tmpdir);
1616 1616
 	    logg("^Incremental update failed, trying to download %s\n", cvdfile);
1617
-	    ret = getcvd(cvdfile, newfile, hostname, ip, localip, proxy, port, user, pass, uas, 1, newver, ctimeout, rtimeout, mdat, logerr, can_whitelist);
1617
+	    ret = getcvd(cvdfile, newfile, hostname, ip, localip, proxy, port, user, pass, uas, newver, ctimeout, rtimeout, mdat, logerr, can_whitelist);
1618 1618
 	    if(ret) {
1619 1619
 		free(newfile);
1620 1620
 		return ret;