From ebf711d1504258a21753738f99464701b9c719ac Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Tue, 5 Dec 2023 22:45:56 +0100 Subject: [PATCH] libpam_misc: use sig_atomic_t instead of int Technically it's identical on pretty much all available systems, but let's follow C specifications. Signed-off-by: Tobias Stoeckmann --- libpam_misc/misc_conv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpam_misc/misc_conv.c b/libpam_misc/misc_conv.c index 6c23fcb8..0f213bce 100644 --- a/libpam_misc/misc_conv.c +++ b/libpam_misc/misc_conv.c @@ -56,7 +56,7 @@ void (*pam_binary_handler_free)(void *appdata, pamc_bp_t *prompt_p) /* the following code is used to get text input */ -static volatile int expired=0; +static volatile sig_atomic_t expired=0; /* return to the previous signal handling */ static void reset_alarm(struct sigaction *o_ptr)