summaryrefslogtreecommitdiffstats
path: root/usr.bin/chpass
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2012-02-14 10:11:45 +0000
committerkevlo <kevlo@FreeBSD.org>2012-02-14 10:11:45 +0000
commita98c58d607bdd82b4105ce0c15625e59e0126082 (patch)
tree5972e53e7a2673fb62ad5ccf551f22f487ff5a98 /usr.bin/chpass
parent88b557a10aa0c025d080af4d59bb400aaa8a6bb6 (diff)
downloadFreeBSD-src-a98c58d607bdd82b4105ce0c15625e59e0126082.zip
FreeBSD-src-a98c58d607bdd82b4105ce0c15625e59e0126082.tar.gz
Remove unnecessary cast
Diffstat (limited to 'usr.bin/chpass')
-rw-r--r--usr.bin/chpass/util.c4
1 files changed, 2 insertions, 2 deletions
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)
OpenPOWER on IntegriCloud