summaryrefslogtreecommitdiffstats
path: root/usr.bin/chpass/util.c
diff options
context:
space:
mode:
authorkstailey <kstailey@openbsd.org>1997-06-17 20:34:43 +0000
committerkstailey <kstailey@openbsd.org>1997-06-17 20:34:43 +0000
commit4a4368796d51fb921b4bf302d28fa07b80b2108c (patch)
treea5b759ca9a1dc0bf97a48fd5631b7ecff15b4731 /usr.bin/chpass/util.c
parentminor cleanup (diff)
downloadwireguard-openbsd-4a4368796d51fb921b4bf302d28fa07b80b2108c.tar.xz
wireguard-openbsd-4a4368796d51fb921b4bf302d28fa07b80b2108c.zip
(foo *)NULL -> NULL
Diffstat (limited to 'usr.bin/chpass/util.c')
-rw-r--r--usr.bin/chpass/util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/chpass/util.c b/usr.bin/chpass/util.c
index 1bf5f6e483b..419e266905c 100644
--- a/usr.bin/chpass/util.c
+++ b/usr.bin/chpass/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.2 1996/06/26 05:31:59 deraadt Exp $ */
+/* $OpenBSD: util.c,v 1.3 1997/06/17 20:49:56 kstailey Exp $ */
/* $NetBSD: util.c,v 1.4 1995/03/26 04:55:35 glass Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)util.c 8.4 (Berkeley) 4/2/94";
#else
-static char rcsid[] = "$OpenBSD: util.c,v 1.2 1996/06/26 05:31:59 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: util.c,v 1.3 1997/06/17 20:49:56 kstailey Exp $";
#endif
#endif /* not lint */
@@ -109,10 +109,10 @@ atot(p, store)
break;
}
}
- if (!(t = strtok((char *)NULL, " \t,")) || !isdigit(*t))
+ if (!(t = strtok(NULL, " \t,")) || !isdigit(*t))
goto bad;
day = atoi(t);
- if (!(t = strtok((char *)NULL, " \t,")) || !isdigit(*t))
+ if (!(t = strtok(NULL, " \t,")) || !isdigit(*t))
goto bad;
year = atoi(t);
if (day < 1 || day > 31 || month < 1 || month > 12 || !year)