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:
Robert Drehmel 2004-03-29 21:15:41 +00:00
parent 3666cedd6b
commit 9fbb80baff
2 changed files with 2 additions and 2 deletions

View File

@ -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 */

View File

@ -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 */