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
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127586
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 */