diff options
Diffstat (limited to 'usr.sbin/cron/lib/env.c')
-rw-r--r-- | usr.sbin/cron/lib/env.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/cron/lib/env.c b/usr.sbin/cron/lib/env.c index 5859b63..d66e1a3 100644 --- a/usr.sbin/cron/lib/env.c +++ b/usr.sbin/cron/lib/env.c @@ -16,7 +16,8 @@ */ #if !defined(lint) && !defined(LINT) -static char rcsid[] = "$Id$"; +static const char rcsid[] = + "$Id: env.c,v 1.5 1997/02/22 16:05:07 peter Exp $"; #endif @@ -192,7 +193,7 @@ env_get(name, envp) register int len = strlen(name); register char *p, *q; - while (p = *envp++) { + while ((p = *envp++)) { if (!(q = strchr(p, '='))) continue; if ((q - p) == len && !strncmp(p, name, len)) |