summaryrefslogtreecommitdiff
path: root/tests/testdisplay_hotplug.c
diff options
context:
space:
mode:
authorArkadiusz Hiler <arkadiusz.hiler@intel.com>2017-04-12 09:19:50 +0200
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2017-06-07 13:26:25 +0300
commit17f9e36c8e7ebc1bbdc943e064468698e48f8e49 (patch)
treeac4a5ada7d0017c052dc59cabba0d51220f17943 /tests/testdisplay_hotplug.c
parentc237e3a24b21b1f60e0cc2624ecdacc72d6d24ca (diff)
Make conditions on HAVE_UDEV consistent
We have a lot of `#ifdef HAVE_UDEV` and ` #if HAVE_UDEV` all over the place, but ifdef and if have a slightly different semantics. Let make it consistent by using #ifdefs only. Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to 'tests/testdisplay_hotplug.c')
-rw-r--r--tests/testdisplay_hotplug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testdisplay_hotplug.c b/tests/testdisplay_hotplug.c
index 3b900ca4..cf155118 100644
--- a/tests/testdisplay_hotplug.c
+++ b/tests/testdisplay_hotplug.c
@@ -34,7 +34,7 @@
#endif
-#if HAVE_UDEV
+#ifdef HAVE_UDEV
#include <libudev.h>
static struct udev_monitor *uevent_monitor;
static struct udev *udev;