summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2007-04-05 01:31:06 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2007-04-05 01:31:06 +0000
commit6a06dc131895752830f4dbffcb4260e47d387917 (patch)
treef96089388d2ac84fc8673b8304b1a83d98d891f5 /usr.sbin
parenta0767c71389db3589677753c009d9c5b98a83dc0 (diff)
remove extra test, but do it correctly this time
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/afs/src/lib/ko/kocell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/afs/src/lib/ko/kocell.c b/usr.sbin/afs/src/lib/ko/kocell.c
index 0d94ed4107d..afcd384ecf0 100644
--- a/usr.sbin/afs/src/lib/ko/kocell.c
+++ b/usr.sbin/afs/src/lib/ko/kocell.c
@@ -429,7 +429,7 @@ readdb (char *line, cell_entry* c, int *dbnum, int maxdbs,
return -1;
}
- while (*line && isspace((unsigned char)*line))
+ while (isspace((unsigned char)*line))
++line;
if (inet_aton (line, &numaddr) == 0) {
@@ -487,7 +487,7 @@ readcellservdb (const char *filename)
++lineno;
i = 0;
line[strcspn(line, "\n")] = '\0';
- while (line[0] && isspace((unsigned char)line[i]))
+ while (isspace((unsigned char)line[i]))
i++;
if (line[i] == '#' || line[i] == '\0')
continue;