aboutsummaryrefslogtreecommitdiff
path: root/sbin/shutdown
diff options
context:
space:
mode:
authorBill Fumerola <billf@FreeBSD.org>1999-07-21 02:49:42 +0000
committerBill Fumerola <billf@FreeBSD.org>1999-07-21 02:49:42 +0000
commitc1160fe49290cf3b6208bcd5b91a85cd365e3765 (patch)
treeb43c806dffde12739c0d51a730d9ffb6bc2ece2d /sbin/shutdown
parent3bdaa8d82e400a3ec7378c452cdd98838e1bfc6f (diff)
downloadsrc-c1160fe49290cf3b6208bcd5b91a85cd365e3765.tar.gz
src-c1160fe49290cf3b6208bcd5b91a85cd365e3765.zip
Avoid ambigious if/else
Notes
Notes: svn path=/head/; revision=48956
Diffstat (limited to 'sbin/shutdown')
-rw-r--r--sbin/shutdown/shutdown.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/shutdown/shutdown.c b/sbin/shutdown/shutdown.c
index e81711aa37bf..43e3d31af3c2 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 */