From: Martin Pool Date: Thu, 24 Jan 2002 02:33:45 +0000 (+0000) Subject: Another harmless size_t warning. X-Git-Tag: v2.5.2pre2~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=707de53457d7ab7c849c2fa3c8380f16c54680ad;p=thirdparty%2Frsync.git Another harmless size_t warning. --- diff --git a/authenticate.c b/authenticate.c index 2b981195..d2b74cd8 100644 --- a/authenticate.c +++ b/authenticate.c @@ -105,8 +105,8 @@ static int get_secret(int module, char *user, char *secret, int len) while (!found) { int i = 0; - memset(line, 0, sizeof(line)); - while (i<(sizeof(line)-1)) { + memset(line, 0, sizeof line); + while ((size_t) i < (sizeof(line)-1)) { if (read(fd, &line[i], 1) != 1) { memset(line, 0, sizeof(line)); close(fd);