src/logoutd.c: Remove unused variable

wait(2) accepts NULL if the status won't be read.  Simplify.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Alejandro Colomar
2024-05-13 23:18:19 +02:00
committed by Serge Hallyn
parent 89402f5171
commit e5d40a1863
+1 -2
View File
@@ -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;