diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2007-03-20 03:45:55 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2007-03-20 03:45:55 +0000 |
commit | 3062cd8b277b2f91c96ada9b87815608c0fa2853 (patch) | |
tree | 36de1710c7e7443a9b3cc1f88927dc99f7e4ecad /sbin/mount_msdos | |
parent | efb1d4e11d5d1571c3e02ef0cc09a97dbd36fc21 (diff) |
remove some bogus *p, from charles longeau
ok deraadt millert
Diffstat (limited to 'sbin/mount_msdos')
-rw-r--r-- | sbin/mount_msdos/mount_msdos.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/mount_msdos/mount_msdos.c b/sbin/mount_msdos/mount_msdos.c index ffa992b058d..292c3aebb1a 100644 --- a/sbin/mount_msdos/mount_msdos.c +++ b/sbin/mount_msdos/mount_msdos.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mount_msdos.c,v 1.21 2006/12/15 12:48:29 jmc Exp $ */ +/* $OpenBSD: mount_msdos.c,v 1.22 2007/03/20 03:45:54 tedu Exp $ */ /* $NetBSD: mount_msdos.c,v 1.16 1996/10/24 00:12:50 cgd Exp $ */ /* @@ -32,7 +32,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: mount_msdos.c,v 1.21 2006/12/15 12:48:29 jmc Exp $"; +static char rcsid[] = "$OpenBSD: mount_msdos.c,v 1.22 2007/03/20 03:45:54 tedu Exp $"; #endif /* not lint */ #include <sys/cdefs.h> @@ -167,7 +167,7 @@ a_gid(char *s) if ((gr = getgrnam(s)) != NULL) gid = gr->gr_gid; else { - for (gname = s; *s && isdigit(*s); ++s); + for (gname = s; isdigit(*s); ++s); if (!*s) gid = atoi(gname); else @@ -186,7 +186,7 @@ a_uid(char *s) if ((pw = getpwnam(s)) != NULL) uid = pw->pw_uid; else { - for (uname = s; *s && isdigit(*s); ++s); + for (uname = s; isdigit(*s); ++s); if (!*s) uid = atoi(uname); else |