Skip to content

Commit c39b6dd

Browse files
authored
Avoid usage of unused variable (#128)
Resolves: #127 Signed-off-by: Sergio Arroutbi <[email protected]>
1 parent 9e4f9a6 commit c39b6dd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/socket.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,9 @@ static void spawn_process(int fd, const char *jwkdir,
178178

179179
static void handle_child(int sig)
180180
{
181-
pid_t pid;
182181
int status;
183182

184-
while ((pid = waitpid(-1, &status, WNOHANG)) > 0);
183+
while ((waitpid(-1, &status, WNOHANG)) > 0);
185184
}
186185

187186
int run_service(const char *jwkdir, int port, process_request_func pfunc)

0 commit comments

Comments
 (0)