]> granicus.if.org Git - sudo/commitdiff
niceties for C compiler bitches -- no real change
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 30 Nov 1993 00:13:38 +0000 (00:13 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 30 Nov 1993 00:13:38 +0000 (00:13 +0000)
check.c

diff --git a/check.c b/check.c
index 8c7981088278f15bf84f745b289e6c6c595c538b..16c55bb73e8838d982f31c3be63b8597022f62dc 100644 (file)
--- a/check.c
+++ b/check.c
@@ -52,7 +52,7 @@ static char rcsid[] = "$Id$";
 #include "sudo.h"
 #include "insults.h"
 
-char *getpass();
+extern char *getpass();
 
 static int check_timestamp();
 static void check_passwd();
@@ -234,7 +234,7 @@ static void check_passwd()
      */
     while (counter > 0) {
        pass = getpass("Password:");
-       if (*pass == (char) NULL)
+       if (*pass == '\0')
            exit(0);
        if (!strcmp(encrypted, crypt(pass, encrypted)))
            return;             /* if the passwd is correct return() */