summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSami Kerola2011-12-01 23:10:21 +0100
committerKarel Zak2011-12-02 18:21:46 +0100
commitfbc333fec09394bf4e47707de08a65e8c0e9c288 (patch)
treecc581fb320208982e33ddc8e04850b80291109a9 /lib
parentbuild-sys: add missing headers to dist (diff)
downloadkernel-qcow2-util-linux-fbc333fec09394bf4e47707de08a65e8c0e9c288.tar.gz
kernel-qcow2-util-linux-fbc333fec09394bf4e47707de08a65e8c0e9c288.tar.xz
kernel-qcow2-util-linux-fbc333fec09394bf4e47707de08a65e8c0e9c288.zip
build-sys: check HAVE_ definitions with #ifdef [smatch scan]
Fix to `warning: undefined preprocessor identifier' messages. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'lib')
-rw-r--r--lib/env.c2
-rw-r--r--lib/ismounted.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/env.c b/lib/env.c
index 770cadff9..e6d119f6f 100644
--- a/lib/env.c
+++ b/lib/env.c
@@ -89,7 +89,7 @@ char *safe_getenv(const char *arg)
if (ruid != 0 || (ruid != geteuid()) || (getgid() != getegid()))
return NULL;
-#if HAVE_PRCTL
+#ifdef HAVE_PRCTL
if (prctl(PR_GET_DUMPABLE, 0, 0, 0, 0) == 0)
return NULL;
#else
diff --git a/lib/ismounted.c b/lib/ismounted.c
index f19d67b1e..273a7d951 100644
--- a/lib/ismounted.c
+++ b/lib/ismounted.c
@@ -11,7 +11,7 @@
#include <stdlib.h>
#include <errno.h>
#include <fcntl.h>
-#if HAVE_MNTENT_H
+#ifdef HAVE_MNTENT_H
#include <mntent.h>
#endif
#include <string.h>