summaryrefslogtreecommitdiffstats
path: root/usr.bin/login
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/login
parent88b557a10aa0c025d080af4d59bb400aaa8a6bb6 (diff)
downloadFreeBSD-src-a98c58d607bdd82b4105ce0c15625e59e0126082.zip
FreeBSD-src-a98c58d607bdd82b4105ce0c15625e59e0126082.tar.gz
Remove unnecessary cast
Diffstat (limited to 'usr.bin/login')
-rw-r--r--usr.bin/login/login_fbtab.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/login/login_fbtab.c b/usr.bin/login/login_fbtab.c
index ad64e4f..f642ea7 100644
--- a/usr.bin/login/login_fbtab.c
+++ b/usr.bin/login/login_fbtab.c
@@ -100,17 +100,17 @@ login_fbtab(char *tty, uid_t uid, gid_t gid)
if ((cp = devname = strtok(buf, WSPACE)) == 0)
continue; /* empty or comment */
if (strncmp(devname, _PATH_DEV, sizeof _PATH_DEV - 1) != 0
- || (cp = strtok((char *) 0, WSPACE)) == 0
+ || (cp = strtok(NULL, WSPACE)) == 0
|| *cp != '0'
|| sscanf(cp, "%o", &prot) == 0
|| prot == 0
|| (prot & 0777) != prot
- || (cp = strtok((char *) 0, WSPACE)) == 0) {
+ || (cp = strtok(NULL, WSPACE)) == 0) {
syslog(LOG_ERR, "%s: bad entry: %s", table, cp ? cp : "(null)");
continue;
}
if (strcmp(devname + 5, tty) == 0) {
- for (cp = strtok(cp, ":"); cp; cp = strtok((char *) 0, ":")) {
+ for (cp = strtok(cp, ":"); cp; cp = strtok(NULL, ":")) {
login_protect(table, cp, prot, uid, gid);
}
}
OpenPOWER on IntegriCloud