src/nnn.c | 9 ++++----- diff --git a/src/nnn.c b/src/nnn.c index ba48fabab33d8eccefaecc2835d70073cb46de37..3d822eb0c0a470a7e0af92e4caf9e03fdc973460 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -1933,7 +1933,6 @@ } static pid_t xfork(uchar_t flag) { - int status; pid_t p = fork(); struct sigaction dfl_act = {.sa_handler = SIG_DFL}; @@ -1971,7 +1970,7 @@ } /* This is the parent waiting for the child to create grandchild */ if (flag & F_NOWAIT) - waitpid(p, &status, 0); + waitpid(p, NULL, 0); if (p == -1) perror("fork"); @@ -4040,7 +4039,7 @@ _exit(EXIT_SUCCESS); } /* In parent */ - waitpid(pid, &tmp, 0); + waitpid(pid, NULL, 0); close(pipefd[1]); if (!page) { @@ -4064,7 +4063,7 @@ _exit(EXIT_SUCCESS); } /* In parent */ - waitpid(pid, &tmp, 0); + waitpid(pid, NULL, 0); close(pipefd[0]); return NULL; @@ -4856,7 +4855,7 @@ readpipe(rfd, path, lastname, lastdir); close(rfd); /* wait for the child to finish. no zombies allowed */ - waitpid(p, &rfd, 0); + waitpid(p, NULL, 0); refresh();