tools: remove the redundant UNUSED define
authorBartosz Golaszewski <bartekgola@gmail.com>
Wed, 27 Sep 2017 09:47:09 +0000 (11:47 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Wed, 27 Sep 2017 09:47:09 +0000 (11:47 +0200)
Use GPIOD_UNUSED instead.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
src/tools/gpioset.c
src/tools/tools-common.h

index c14f93e0b705b44c0cb2bbb85b8cc86d6883f8c3..b0d60edb69a2b440d1d8ac9b181af16b46fb519b 100644 (file)
@@ -74,7 +74,7 @@ static void maybe_daemonize(bool daemonize)
        }
 }
 
-static void wait_enter(void *data UNUSED)
+static void wait_enter(void *data GPIOD_UNUSED)
 {
        getchar();
 }
index defa1093f85261fb103a925be5e3b86d990a5b10..78c7cd210caee5a7b0daf732040fcdf7c65430a8 100644 (file)
@@ -18,7 +18,6 @@
  * common code.
  */
 
-#define UNUSED                 __attribute__((unused))
 #define PRINTF(fmt, arg)       __attribute__((format(printf, fmt, arg)))
 #define ARRAY_SIZE(x)          (sizeof(x) / sizeof(*(x)))