fix(auth.c): use POSIX pid_t

Use standard pid_t type instead of libc specific __pid_t type.
This commit is contained in:
grialion
2025-07-09 23:14:36 +02:00
parent 3f264a66b9
commit cd5a3ede52

View File

@@ -245,7 +245,7 @@ bool launch(char* user, char* passwd, struct session session, void (*cb)(void),
perror("execl error");
(void)fputs("failure calling session\n", stderr);
} else {
__pid_t child_pid = (__pid_t)pid;
pid_t child_pid = (pid_t)pid;
waitpid(child_pid, NULL, 0);
pam_setcred(pamh, PAM_DELETE_CRED);