From: Alejandro Colomar Date: Mon, 13 May 2024 21:18:19 +0000 (+0200) Subject: src/logoutd.c: Remove unused variable X-Git-Tag: 4.17.0-rc1~203 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e5d40a18631c456889176d94e44c6470f5f89320;p=thirdparty%2Fshadow.git src/logoutd.c: Remove unused variable wait(2) accepts NULL if the status won't be read. Simplify. Signed-off-by: Alejandro Colomar --- diff --git a/src/logoutd.c b/src/logoutd.c index 19bcb7457..d1b30897f 100644 --- a/src/logoutd.c +++ b/src/logoutd.c @@ -121,7 +121,6 @@ int main(int argc, char **argv) { int i; - int status; pid_t pid; struct utmpx *ut; @@ -251,7 +250,7 @@ main(int argc, char **argv) /* * Reap any dead babies ... */ - while (wait (&status) != -1); + while (wait(NULL) != -1); } return EXIT_FAILURE;