aboutsummaryrefslogtreecommitdiff
path: root/libpam_misc
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@stoeckmann.org>2023-12-05 22:45:56 +0100
committerDmitry V. Levin <ldv@strace.io>2023-12-05 21:47:16 +0000
commitebf711d1504258a21753738f99464701b9c719ac (patch)
treeb590290871d5ccad8a6da97cb400410f2eeb3b38 /libpam_misc
parent36586fc218918ab8d03f8062efbf5081c0349d7e (diff)
downloadpam-ebf711d1504258a21753738f99464701b9c719ac.tar.gz
pam-ebf711d1504258a21753738f99464701b9c719ac.tar.bz2
pam-ebf711d1504258a21753738f99464701b9c719ac.zip
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 <tobias@stoeckmann.org>
Diffstat (limited to 'libpam_misc')
-rw-r--r--libpam_misc/misc_conv.c2
1 files changed, 1 insertions, 1 deletions
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)