From: Niki Roo Date: Sun, 15 May 2022 20:30:33 +0000 (+0200) Subject: try to force-ignore a spurious warning in clang X-Git-Url: http://git.nikiroo.be/?a=commitdiff_plain;h=0915b71ef7d9740a6c6039afd618fcebb61a4abb;p=nsub.git try to force-ignore a spurious warning in clang --- diff --git a/src/utils/net.c b/src/utils/net.c index 10937fb..1da4fb7 100644 --- a/src/utils/net.c +++ b/src/utils/net.c @@ -55,7 +55,7 @@ void *get_in_addr(struct sockaddr *sa); void sigchld_handler(int pid); void sigchld_handler(int pid) { - if (pid > 0 && pid < 0) pid = 0; + if (pid > 0 || pid < 0) pid = 0; // Reap all zombie processes while (waitpid(-1, NULL, WNOHANG) > 0);