diff --git a/README.md b/README.md index aa0ef6b..d86d822 100644 --- a/README.md +++ b/README.md @@ -143,10 +143,6 @@ Helper Macros Returns the number of elements in an array. From the great book, The Practice of Programming, by Kernighan and Pike. -- `UNUSED(var)` - - Shorter and more readable version of `var __attribute__ ((unused))` - Generic Functions ----------------- diff --git a/lite.h b/lite.h index 5fdc429..2f6fa06 100644 --- a/lite.h +++ b/lite.h @@ -156,11 +156,6 @@ static inline int erase(const char *path) #define NELEMS(array) (sizeof(array) / sizeof(array[0])) #endif -/* Mark a function variable as unused, useful for generic callbacks */ -#ifndef UNUSED -#define UNUSED(x) UNUSED_ ## x __attribute__ ((unused)) -#endif - /* Does directory end with a slash? */ static inline int fisslashdir(char *dir) { diff --git a/tests/pidfile.c b/tests/pidfile.c index fa42a7b..9c086f1 100644 --- a/tests/pidfile.c +++ b/tests/pidfile.c @@ -15,13 +15,13 @@ static char PIDFILE[42]; static int verbose = 0; static struct stat before, after; -static void sigterm_handler(int UNUSED(signo)) +static void sigterm_handler(int signo) { PRINT("Exiting ...\n"); remove(PIDFILE); } -static void sigalrm_handler(int UNUSED(signo)) +static void sigalrm_handler(int signo) { PRINT("Calling pidfile(%s)\n", pidfile_arg ?: "NULL"); if (pidfile(pidfile_arg))