Another harmless size_t warning.
authorMartin Pool <mbp@samba.org>
Thu, 24 Jan 2002 02:33:45 +0000 (02:33 +0000)
committerMartin Pool <mbp@samba.org>
Thu, 24 Jan 2002 02:33:45 +0000 (02:33 +0000)
authenticate.c

index 2b98119..d2b74cd 100644 (file)
@@ -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);