diff options
-rw-r--r-- | libexec/identd/parse.c | 6 | ||||
-rw-r--r-- | libexec/login_radius/login_radius.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libexec/identd/parse.c b/libexec/identd/parse.c index 7bb9d094e21..6947ef830fe 100644 --- a/libexec/identd/parse.c +++ b/libexec/identd/parse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.c,v 1.43 2005/12/06 22:05:22 deraadt Exp $ */ +/* $OpenBSD: parse.c,v 1.44 2007/03/21 03:32:28 tedu Exp $ */ /* * This program is in the public domain and may be used freely by anyone @@ -215,7 +215,7 @@ parse(int fd, struct in_addr *laddr, struct in_addr *faddr) /* Pull out local and remote ports */ p = buf; - while (*p != '\0' && isspace(*p)) + while (isspace(*p)) p++; if ((p = strtok(p, " \t,"))) { lport = atoi(p); @@ -413,7 +413,7 @@ parse6(int fd, struct sockaddr_in6 *laddr, struct sockaddr_in6 *faddr) /* Pull out local and remote ports */ p = buf; - while (*p != '\0' && isspace(*p)) + while (isspace(*p)) p++; if ((p = strtok(p, " \t,"))) { lport = atoi(p); diff --git a/libexec/login_radius/login_radius.c b/libexec/login_radius/login_radius.c index e1f7a826dfb..9fffef843a1 100644 --- a/libexec/login_radius/login_radius.c +++ b/libexec/login_radius/login_radius.c @@ -1,4 +1,4 @@ -/* $OpenBSD: login_radius.c,v 1.5 2003/07/29 18:39:23 deraadt Exp $ */ +/* $OpenBSD: login_radius.c,v 1.6 2007/03/21 03:32:28 tedu Exp $ */ /*- * Copyright (c) 1996, 1997 Berkeley Software Design, Inc. All rights reserved. @@ -204,7 +204,7 @@ static int cleanstring(char *s) { - while (*s && isgraph(*s) && *s != '\\') + while (isgraph(*s) && *s != '\\') ++s; return(*s == '\0' ? 1 : 0); } |