fix signedness problem (closes bug#122)

git-svn: trunk@2492
remotes/push_mirror/metadata
Tomasz Kojm 19 years ago
parent 17e4be832f
commit 14c1c46755
  1. 4
      clamav-devel/ChangeLog
  2. 5
      clamav-devel/freshclam/manager.c

@ -1,3 +1,7 @@
Tue Nov 7 18:59:20 CET 2006 (tk)
---------------------------------
* freshclam/manager.c: fix signedness problem (closes bug#122)
Mon Nov 6 00:12:28 CET 2006 (tk)
---------------------------------
* libclamav/scanners.c: fix some typos in debug messages, thanks to

@ -771,7 +771,8 @@ int updatedb(const char *dbname, const char *hostname, char *ip, int *signo, con
{
struct cl_cvd *current, *remote;
struct cfgstruct *cpt;
int nodb = 0, currver = 0, newver = -1, ret, port = 0, ims = -1, i;
unsigned int nodb = 0, currver = 0, newver = 0, port = 0, ims = 0, i;
int ret;
char *pt, dbfile[32], dbinc[32];
const char *proxy = NULL, *user = NULL, *pass = NULL, *uas = NULL;
unsigned int flevel = cl_retflevel(), inc;
@ -858,7 +859,7 @@ int updatedb(const char *dbname, const char *hostname, char *ip, int *signo, con
ctimeout = cfgopt(copt, "ConnectTimeout")->numarg;
rtimeout = cfgopt(copt, "ReceiveTimeout")->numarg;
if(!nodb && newver == -1) {
if(!nodb && !newver) {
remote = remote_cvdhead(dbfile, hostname, ip, localip, proxy, port, user, pass, uas, &ims, ctimeout, rtimeout);

Loading…
Cancel
Save