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