From: Todd C. Miller Date: Tue, 30 Nov 1993 00:14:02 +0000 (+0000) Subject: now uses STD_HEADERS macro X-Git-Tag: SUDO_1_3_0~58 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73c4682464bee0a1d47dfa2aca310b9ae827af8b;p=sudo now uses STD_HEADERS macro --- diff --git a/find_path.c b/find_path.c index d16acb8e5..2a652f48b 100644 --- a/find_path.c +++ b/find_path.c @@ -49,6 +49,9 @@ static char rcsid[] = "$Id$"; #endif /* lint */ #include +#ifdef STD_HEADERS +#include +#endif /* STD_HEADERS */ #include #include #include @@ -56,6 +59,7 @@ static char rcsid[] = "$Id$"; #include #include "sudo.h" +#ifndef STD_HEADERS extern char *malloc(); extern char *getenv(); extern char *strcpy(); @@ -71,6 +75,7 @@ extern char *getwd(); #ifndef NEED_STRDUP extern char *strdup(); #endif +#endif /* !STD_HEADERS */ /******************************************************************* @@ -121,7 +126,7 @@ char *find_path(file) * search current dir last if it is in PATH This will miss sneaky * things like using './' or './/' */ - if (*path == NULL || (*path == '.' && *(path + 1) == NULL)) { + if (*path == '\0' || (*path == '.' && *(path + 1) == '\0')) { checkdot = 1; path = n + 1; continue;