diff options
Diffstat (limited to 'src/tools/oping/oping_server.c')
-rw-r--r-- | src/tools/oping/oping_server.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tools/oping/oping_server.c b/src/tools/oping/oping_server.c index 8a5a3512..8680b11b 100644 --- a/src/tools/oping/oping_server.c +++ b/src/tools/oping/oping_server.c @@ -31,6 +31,9 @@ void shutdown_server(int signo, siginfo_t * info, void * c) { + (void) info; + (void) c; + switch(signo) { case SIGINT: case SIGTERM: @@ -47,6 +50,8 @@ void * cleaner_thread(void * o) struct timespec now = {0, 0}; int deadline_ms = 10000; + (void) o; + while (true) { clock_gettime(CLOCK_REALTIME, &now); pthread_mutex_lock(&server.lock); @@ -74,6 +79,8 @@ void * server_thread(void *o) if (fq == NULL) return (void *) 1; + (void) o; + while (true) { int ret = flow_event_wait(server.flows, fq, &timeout); if (ret == -ETIMEDOUT) @@ -117,6 +124,8 @@ void * accept_thread(void * o) int fd = 0; struct timespec now = {0, 0}; + (void) o; + printf("Ouroboros ping server started.\n"); while (true) { |