]> git.ipfire.org Git - thirdparty/shadow.git/commit
src/sulogin.c: Make static variables local to main()
authorAlejandro Colomar <alx@kernel.org>
Wed, 17 Jan 2024 15:57:02 +0000 (16:57 +0100)
committerSerge Hallyn <serge@hallyn.com>
Thu, 18 Jan 2024 00:11:19 +0000 (18:11 -0600)
commit1faf4d6469ac440e18f049fcee5a5616483e9b80
treeb717f8ac1f4405560f87296e19e77a2d94176f79
parent5214710432f531ffde8763e44ce9355bbdb58768
src/sulogin.c: Make static variables local to main()

Those variables are only used in main().  Restrict their scope.
Keep them static (.bss), as changing that may be dangerous.

Suggested-by: Samanta Navarro <ferivoz@riseup.net>
Cc: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
src/sulogin.c