diff options
author | billf <billf@FreeBSD.org> | 1999-07-21 02:49:42 +0000 |
---|---|---|
committer | billf <billf@FreeBSD.org> | 1999-07-21 02:49:42 +0000 |
commit | 16090fda0f152fd8957dc371d23211896714fb85 (patch) | |
tree | b177acbf698e1a5c9f22b06f90158cdfcb222f20 /sbin/shutdown/shutdown.c | |
parent | 6e9d0b9630a416540c3196a6db058c651e30c5ce (diff) | |
download | FreeBSD-src-16090fda0f152fd8957dc371d23211896714fb85.zip FreeBSD-src-16090fda0f152fd8957dc371d23211896714fb85.tar.gz |
Avoid ambigious if/else
Diffstat (limited to 'sbin/shutdown/shutdown.c')
-rw-r--r-- | sbin/shutdown/shutdown.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/shutdown/shutdown.c b/sbin/shutdown/shutdown.c index e81711a..43e3d31 100644 --- a/sbin/shutdown/shutdown.c +++ b/sbin/shutdown/shutdown.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)shutdown.c 8.4 (Berkeley) 4/28/95"; #endif static const char rcsid[] = - "$Id: shutdown.c,v 1.18 1999/06/21 06:21:05 jkoshy Exp $"; + "$Id: shutdown.c,v 1.19 1999/06/21 16:06:21 ru Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -420,7 +420,7 @@ getoffset(timearg) /* handle hh:mm by getting rid of the colon */ for (p = timearg; *p; ++p) - if (!isascii(*p) || !isdigit(*p)) + if (!isascii(*p) || !isdigit(*p)) { if (*p == ':' && strlen(p) == 3) { p[0] = p[1]; p[1] = p[2]; @@ -428,6 +428,7 @@ getoffset(timearg) } else badtime(); + } unsetenv("TZ"); /* OUR timezone */ lt = localtime(&now); /* current time val */ |