diff options
| author | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2017-04-12 09:19:50 +0200 |
|---|---|---|
| committer | Arkadiusz Hiler <arkadiusz.hiler@intel.com> | 2017-06-07 13:26:25 +0300 |
| commit | 17f9e36c8e7ebc1bbdc943e064468698e48f8e49 (patch) | |
| tree | ac4a5ada7d0017c052dc59cabba0d51220f17943 /tools | |
| parent | c237e3a24b21b1f60e0cc2624ecdacc72d6d24ca (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 'tools')
| -rw-r--r-- | tools/intel_l3_parity.c | 2 | ||||
| -rw-r--r-- | tools/intel_l3_parity.h | 2 | ||||
| -rw-r--r-- | tools/intel_l3_udev_listener.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tools/intel_l3_parity.c b/tools/intel_l3_parity.c index dce7f320..eb00c50d 100644 --- a/tools/intel_l3_parity.c +++ b/tools/intel_l3_parity.c @@ -42,7 +42,7 @@ #ifdef HAVE_CONFIG_H #include "config.h" #endif -#if HAVE_UDEV +#ifdef HAVE_UDEV #include <libudev.h> #include <syslog.h> #endif diff --git a/tools/intel_l3_parity.h b/tools/intel_l3_parity.h index 65697c4f..759c4f4b 100644 --- a/tools/intel_l3_parity.h +++ b/tools/intel_l3_parity.h @@ -18,7 +18,7 @@ struct l3_location { uint8_t subbank; }; -#if HAVE_UDEV +#ifdef HAVE_UDEV int l3_uevent_setup(struct l3_parity *par); /* Listens (blocks) for an l3 parity event. Returns the location of the error. */ int l3_listen(struct l3_parity *par, bool daemon, struct l3_location *loc); diff --git a/tools/intel_l3_udev_listener.c b/tools/intel_l3_udev_listener.c index 0b94c1c5..270bfff4 100644 --- a/tools/intel_l3_udev_listener.c +++ b/tools/intel_l3_udev_listener.c @@ -25,7 +25,7 @@ #include "config.h" #endif -#if HAVE_UDEV +#ifdef HAVE_UDEV #include <libudev.h> #ifndef _GNU_SOURCE #define _GNU_SOURCE |
