From a98c58d607bdd82b4105ce0c15625e59e0126082 Mon Sep 17 00:00:00 2001 From: kevlo Date: Tue, 14 Feb 2012 10:11:45 +0000 Subject: Remove unnecessary cast --- usr.bin/chpass/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/chpass') diff --git a/usr.bin/chpass/util.c b/usr.bin/chpass/util.c index 07d96e2..baf160e 100644 --- a/usr.bin/chpass/util.c +++ b/usr.bin/chpass/util.c @@ -110,10 +110,10 @@ atot(char *p, time_t *store) } } } - 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) -- cgit v1.1