summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrobert <robert@FreeBSD.org>2004-03-29 21:15:41 +0000
committerrobert <robert@FreeBSD.org>2004-03-29 21:15:41 +0000
commit887e0f772bb62bb17c58fb106d792a107c821d14 (patch)
treed18bd47260e1181fb42a0acfea5ee72917e45a50
parent314f26c8ec33b0aa61649d806a05b4ed03273054 (diff)
downloadFreeBSD-src-887e0f772bb62bb17c58fb106d792a107c821d14.zip
FreeBSD-src-887e0f772bb62bb17c58fb106d792a107c821d14.tar.gz
Bring these files closer to style(9) conformance by comparing a
dereferenced character pointer to '\0' instead of using the ! operator.
-rw-r--r--sys/libkern/index.c2
-rw-r--r--sys/libkern/rindex.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/libkern/index.c b/sys/libkern/index.c
index 1e2b11b..a6427d8 100644
--- a/sys/libkern/index.c
+++ b/sys/libkern/index.c
@@ -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 */
diff --git a/sys/libkern/rindex.c b/sys/libkern/rindex.c
index 8db24db..3de2130 100644
--- a/sys/libkern/rindex.c
+++ b/sys/libkern/rindex.c
@@ -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 */
OpenPOWER on IntegriCloud