]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
login: Use pid_t for child_pid
authorTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 19 Sep 2023 18:45:40 +0000 (20:45 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 19 Sep 2023 18:48:23 +0000 (20:48 +0200)
Since child_pid keeps track of a PID, it should be of type pid_t
and not of type int.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
login-utils/login.c

index 8294a522af3394da8883192f2c4759448aaecf5e..51c58898abf32cb95560b570a87a339e31b0ab0b 100644 (file)
@@ -139,7 +139,7 @@ struct login_context {
                        keep_env:1;     /* login -p */
 };
 
-static int child_pid = 0;
+static pid_t child_pid = 0;
 static volatile sig_atomic_t got_sig = 0;
 static char *timeout_msg;