summaryrefslogtreecommitdiff
path: root/libexec/identd
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2007-03-21 03:32:29 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2007-03-21 03:32:29 +0000
commitc929cb3352d36a7ffe6c2f49aeead12689d731f8 (patch)
treed5e88b483956c9e15a135f76348d5a6344b18d74 /libexec/identd
parent645b5b2cb8a4c44e31ae3ab064ce9f2cc5840a02 (diff)
remove extra *p tests, from charles longeau
ok deraadt millert
Diffstat (limited to 'libexec/identd')
-rw-r--r--libexec/identd/parse.c6
1 files changed, 3 insertions, 3 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);