Bring these files closer to style(9) conformance by comparing a
dereferenced character pointer to '\0' instead of using the ! operator.
This commit is contained in:
parent
3666cedd6b
commit
9fbb80baff
@ -51,7 +51,7 @@ index(p, ch)
|
||||
for (;; ++u.p) {
|
||||
if (*u.p == ch)
|
||||
return(u.p);
|
||||
if (!*u.p)
|
||||
if (*u.p == '\0')
|
||||
return(NULL);
|
||||
}
|
||||
/* NOTREACHED */
|
||||
|
@ -52,7 +52,7 @@ rindex(p, ch)
|
||||
for (save = NULL;; ++u.p) {
|
||||
if (*u.p == ch)
|
||||
save = u.p;
|
||||
if (!*u.p)
|
||||
if (*u.p == '\0')
|
||||
return(save);
|
||||
}
|
||||
/* NOTREACHED */
|
||||
|
Loading…
Reference in New Issue
Block a user