]> git.ipfire.org Git - thirdparty/shadow.git/commit
Use 'void' instead of 'RETSIGTYPE'. Use 'sighandler_t' too.
authorAlejandro Colomar <alx.manpages@gmail.com>
Thu, 30 Dec 2021 15:36:18 +0000 (16:36 +0100)
committerSerge Hallyn <serge@hallyn.com>
Sat, 15 Jan 2022 14:25:53 +0000 (08:25 -0600)
commitfd5945e53342cf5017ca3157518fa69f8ac3e133
tree370cedf72cb7bc2c5d4d40af6f6776a241adef23
parent1b96f6a9b3bcfed802105a3976519d14a3e19180
Use 'void' instead of 'RETSIGTYPE'.  Use 'sighandler_t' too.

C89 and POSIX.1-2001 define signal(2) as returning a pointer to a
function returning 'void'.  K&R C signal(2) signature is obsolete.
Use 'void' directly.

Also, instead of writing the function pointer type explicitly, use
POSIX's 'sighandler_t'.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
configure.ac
libmisc/loginprompt.c
src/expiry.c
src/gpasswd.c
src/login.c
src/su.c
src/sulogin.c