summaryrefslogtreecommitdiffstats
path: root/misc-utils/whereis.c
diff options
context:
space:
mode:
authorSami Kerola2013-01-30 21:33:23 +0100
committerKarel Zak2013-02-06 11:51:15 +0100
commitf8bd089b1da79ce0cd4f228e371aa2089561eaa5 (patch)
treeb88fa2ac1da14cf1c367654c4d3ede101389b7ff /misc-utils/whereis.c
parenttextual: fix two misencodings in comments (diff)
downloadkernel-qcow2-util-linux-f8bd089b1da79ce0cd4f228e371aa2089561eaa5.tar.gz
kernel-qcow2-util-linux-f8bd089b1da79ce0cd4f228e371aa2089561eaa5.tar.xz
kernel-qcow2-util-linux-f8bd089b1da79ce0cd4f228e371aa2089561eaa5.zip
a pointer should not be compared to zero [coccinelle]
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'misc-utils/whereis.c')
-rw-r--r--misc-utils/whereis.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc-utils/whereis.c b/misc-utils/whereis.c
index d253f375d..4194ad5dc 100644
--- a/misc-utils/whereis.c
+++ b/misc-utils/whereis.c
@@ -304,7 +304,7 @@ findv(char **dirv, int dirc, char *cp)
static void
looksrc(char *cp)
{
- if (Sflag == 0)
+ if (Sflag == NULL)
findv(srcdirs, ARRAY_SIZE(srcdirs)-1, cp);
else
findv(Sflag, Scnt, cp);
@@ -313,7 +313,7 @@ looksrc(char *cp)
static void
lookbin(char *cp)
{
- if (Bflag == 0) {
+ if (Bflag == NULL) {
findv(bindirs, ARRAY_SIZE(bindirs)-1, cp);
while (*pathdir_p)
findin(*pathdir_p++, cp); /* look $PATH */
@@ -324,7 +324,7 @@ lookbin(char *cp)
static void
lookman(char *cp)
{
- if (Mflag == 0)
+ if (Mflag == NULL)
findv(mandirs, ARRAY_SIZE(mandirs)-1, cp);
else
findv(Mflag, Mcnt, cp);