diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2007-03-20 04:00:33 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2007-03-20 04:00:33 +0000 |
commit | f358db4fa96515906a6f924dbeba42e426eae9cc (patch) | |
tree | 60d6f4c9684e4ee69d3c16c6eb278f7e7d39590a /usr.sbin/amd | |
parent | 5efa0f0e0b4cfb776c527aae961a39413b8bd001 (diff) |
remove some bogus *p tests from charles longeau
ok deraadt millert
Diffstat (limited to 'usr.sbin/amd')
-rw-r--r-- | usr.sbin/amd/amd/amq_subr.c | 4 | ||||
-rw-r--r-- | usr.sbin/amd/amd/info_file.c | 6 | ||||
-rw-r--r-- | usr.sbin/amd/amd/mount_fs.c | 4 | ||||
-rw-r--r-- | usr.sbin/amd/mk-amd-map/mk-amd-map.c | 8 |
4 files changed, 11 insertions, 11 deletions
diff --git a/usr.sbin/amd/amd/amq_subr.c b/usr.sbin/amd/amd/amq_subr.c index 93aec676379..77d95e10daf 100644 --- a/usr.sbin/amd/amd/amq_subr.c +++ b/usr.sbin/amd/amd/amq_subr.c @@ -32,7 +32,7 @@ * SUCH DAMAGE. * * from: @(#)amq_subr.c 8.1 (Berkeley) 6/6/93 - * $Id: amq_subr.c,v 1.11 2005/02/18 15:51:02 henning Exp $ + * $Id: amq_subr.c,v 1.12 2007/03/20 04:00:32 tedu Exp $ */ /* @@ -215,7 +215,7 @@ struct svc_req *rqstp; /* * Find start of value */ - while (*cp && isascii(*cp) && isspace(*cp)) + while (isascii(*cp) && isspace(*cp)) cp++; root_newmap(s, cp, (char *) 0); diff --git a/usr.sbin/amd/amd/info_file.c b/usr.sbin/amd/amd/info_file.c index 64de27a8288..87f310bbded 100644 --- a/usr.sbin/amd/amd/info_file.c +++ b/usr.sbin/amd/amd/info_file.c @@ -32,7 +32,7 @@ * SUCH DAMAGE. * * from: @(#)info_file.c 8.1 (Berkeley) 6/6/93 - * $Id: info_file.c,v 1.5 2003/06/02 23:36:51 millert Exp $ + * $Id: info_file.c,v 1.6 2007/03/20 04:00:32 tedu Exp $ */ /* @@ -119,7 +119,7 @@ search_or_reload_file(FILE *fp, char *map, char *key, char **val, mnt_map *m, /* * Find start of key */ - for (kp = key_val; *kp && isascii(*kp) && isspace(*kp); kp++) + for (kp = key_val; isascii(*kp) && isspace(*kp); kp++) ; /* @@ -141,7 +141,7 @@ search_or_reload_file(FILE *fp, char *map, char *key, char **val, mnt_map *m, *cp++ = '\0'; if (fn || (*key == *kp && strcmp(key, kp) == 0)) { - while (*cp && isascii(*cp) && isspace(*cp)) + while (isascii(*cp) && isspace(*cp)) cp++; if (*cp) { /* diff --git a/usr.sbin/amd/amd/mount_fs.c b/usr.sbin/amd/amd/mount_fs.c index 43d95861753..08bc14fb23e 100644 --- a/usr.sbin/amd/amd/mount_fs.c +++ b/usr.sbin/amd/amd/mount_fs.c @@ -32,7 +32,7 @@ * SUCH DAMAGE. * * from: @(#)mount_fs.c 8.1 (Berkeley) 6/6/93 - * $Id: mount_fs.c,v 1.9 2003/06/02 23:36:51 millert Exp $ + * $Id: mount_fs.c,v 1.10 2007/03/20 04:00:32 tedu Exp $ */ #include "am.h" @@ -217,7 +217,7 @@ nextmntopt(char **p) /* * Skip past white space */ - while (*cp && isspace(*cp)) + while (isspace(*cp)) cp++; /* * Word starts here diff --git a/usr.sbin/amd/mk-amd-map/mk-amd-map.c b/usr.sbin/amd/mk-amd-map/mk-amd-map.c index 3bac267fdd9..6d9c3336591 100644 --- a/usr.sbin/amd/mk-amd-map/mk-amd-map.c +++ b/usr.sbin/amd/mk-amd-map/mk-amd-map.c @@ -32,7 +32,7 @@ * SUCH DAMAGE. * * from: @(#)mk-amd-map.c 8.1 (Berkeley) 6/28/93 - * $Id: mk-amd-map.c,v 1.8 2004/05/07 15:51:12 millert Exp $ + * $Id: mk-amd-map.c,v 1.9 2007/03/20 04:00:32 tedu Exp $ */ /* @@ -48,7 +48,7 @@ char copyright[] = "\ #endif /* not lint */ #ifndef lint -static char rcsid[] = "$Id: mk-amd-map.c,v 1.8 2004/05/07 15:51:12 millert Exp $"; +static char rcsid[] = "$Id: mk-amd-map.c,v 1.9 2007/03/20 04:00:32 tedu Exp $"; static char sccsid[] = "@(#)mk-amd-map.c 8.1 (Berkeley) 6/28/93"; #endif /* not lint */ @@ -155,7 +155,7 @@ read_file(FILE *fp, char *map, void *db) /* * Find start of key */ - for (kp = key_val; *kp && isascii(*kp) && isspace(*kp); kp++) + for (kp = key_val; isascii(*kp) && isspace(*kp); kp++) ; /* @@ -176,7 +176,7 @@ read_file(FILE *fp, char *map, void *db) */ if (*cp) *cp++ = '\0'; - while (*cp && isascii(*cp) && isspace(*cp)) + while (isascii(*cp) && isspace(*cp)) cp++; if (*kp == '+') { fprintf(stderr, "Can't interpolate %s\n", kp); |