From: Todd C. Miller Date: Tue, 30 Nov 1993 00:13:38 +0000 (+0000) Subject: niceties for C compiler bitches -- no real change X-Git-Tag: SUDO_1_3_0~59 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e14daa5201b2d71f70b829dcff75c7b1c188ab5;p=sudo niceties for C compiler bitches -- no real change --- diff --git a/check.c b/check.c index 8c7981088..16c55bb73 100644 --- 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() */