diff --git a/src/event.c b/src/event.c index 1f42c68d..59b96e37 100644 --- a/src/event.c +++ b/src/event.c @@ -179,14 +179,12 @@ static int pipefd[2] = {-1, -1}; static splay_tree_t signal_tree = {.compare = (splay_compare_t)signal_compare}; static void signal_handler(int signum) { - unsigned char num = (unsigned char)signum; + unsigned char num = signum; write(pipefd[1], &num, 1); } static void signalio_handler(void *data, int flags) { unsigned char signum; - UNUSED(flags); - UNUSED(data); if(read(pipefd[0], &signum, 1) != 1) return; diff --git a/src/sptps.c b/src/sptps.c index 48467e79..d26c5827 100644 --- a/src/sptps.c +++ b/src/sptps.c @@ -28,7 +28,6 @@ #include "logger.h" #include "prf.h" #include "sptps.h" -#include "utils.h" unsigned int sptps_replaywin = 16; @@ -53,15 +52,9 @@ unsigned int sptps_replaywin = 16; */ void sptps_log_quiet(sptps_t *s, int s_errno, const char *format, va_list ap) { - UNUSED(s); - UNUSED(s_errno); - UNUSED(format); - UNUSED(ap); } void sptps_log_stderr(sptps_t *s, int s_errno, const char *format, va_list ap) { - UNUSED(s); - UNUSED(s_errno); vfprintf(stderr, format, ap); fputc('\n', stderr); }