diff options
author | robert <robert@FreeBSD.org> | 2004-03-29 21:15:41 +0000 |
---|---|---|
committer | robert <robert@FreeBSD.org> | 2004-03-29 21:15:41 +0000 |
commit | 887e0f772bb62bb17c58fb106d792a107c821d14 (patch) | |
tree | d18bd47260e1181fb42a0acfea5ee72917e45a50 /sys/libkern/index.c | |
parent | 314f26c8ec33b0aa61649d806a05b4ed03273054 (diff) | |
download | FreeBSD-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.
Diffstat (limited to 'sys/libkern/index.c')
-rw-r--r-- | sys/libkern/index.c | 2 |
1 files changed, 1 insertions, 1 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 */ |