From 5dac5eb4512b799c280a0e1b188134bbb36f23d7 Mon Sep 17 00:00:00 2001 From: thorkill Date: Tue, 30 Jun 2015 18:09:50 +0200 Subject: [PATCH] Revert "Marked unused parameters" This reverts commit 3a61d104d4cc22a9393fdaf6f63b5ae9aee6f1b8. --- src/event.c | 4 +--- src/sptps.c | 7 ------- 2 files changed, 1 insertion(+), 10 deletions(-) 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); }