From e5d40a18631c456889176d94e44c6470f5f89320 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Mon, 13 May 2024 23:18:19 +0200 Subject: [PATCH] src/logoutd.c: Remove unused variable wait(2) accepts NULL if the status won't be read. Simplify. Signed-off-by: Alejandro Colomar --- src/logoutd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.47.3