Marked unused parameters

This commit is contained in:
thorkill 2015-06-29 15:53:05 +02:00
parent f755d57f4e
commit 3a61d104d4
2 changed files with 10 additions and 1 deletions

View file

@ -179,12 +179,14 @@ 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 = signum;
unsigned char num = (unsigned char)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;

View file

@ -28,6 +28,7 @@
#include "logger.h"
#include "prf.h"
#include "sptps.h"
#include "utils.h"
unsigned int sptps_replaywin = 16;
@ -52,9 +53,15 @@ 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);
}