From c39b6dd44a194b7304958ee151055d26a09a4363 Mon Sep 17 00:00:00 2001 From: Sergio Arroutbi Date: Thu, 11 Jan 2024 17:06:29 +0100 Subject: [PATCH] Avoid usage of unused variable (#128) Resolves: #127 Signed-off-by: Sergio Arroutbi --- src/socket.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/socket.c b/src/socket.c index bae7db9..df512cc 100644 --- a/src/socket.c +++ b/src/socket.c @@ -178,10 +178,9 @@ static void spawn_process(int fd, const char *jwkdir, static void handle_child(int sig) { - pid_t pid; int status; - while ((pid = waitpid(-1, &status, WNOHANG)) > 0); + while ((waitpid(-1, &status, WNOHANG)) > 0); } int run_service(const char *jwkdir, int port, process_request_func pfunc)