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 | |
parent | efb1d4e11d5d1571c3e02ef0cc09a97dbd36fc21 (diff) |
remove some bogus *p, from charles longeau
ok deraadt millert
-rw-r--r-- | sbin/mount_ados/mount_ados.c | 8 | ||||
-rw-r--r-- | sbin/mount_msdos/mount_msdos.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sbin/mount_ados/mount_ados.c b/sbin/mount_ados/mount_ados.c index a69608af9a5..04ddef6924c 100644 --- a/sbin/mount_ados/mount_ados.c +++ b/sbin/mount_ados/mount_ados.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mount_ados.c,v 1.14 2006/12/15 12:38:15 jmc Exp $ */ +/* $OpenBSD: mount_ados.c,v 1.15 2007/03/20 03:45:54 tedu Exp $ */ /* $NetBSD: mount_ados.c,v 1.5 1996/04/13 01:30:59 jtc Exp $ */ /* @@ -32,7 +32,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: mount_ados.c,v 1.14 2006/12/15 12:38:15 jmc Exp $"; +static char rcsid[] = "$OpenBSD: mount_ados.c,v 1.15 2007/03/20 03:45:54 tedu Exp $"; #endif /* not lint */ #include <sys/cdefs.h> @@ -140,7 +140,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 @@ -159,7 +159,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 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 |