]> git.ipfire.org Git - thirdparty/shadow.git/commit
src/gpasswd.c: Simplify cpp conditional
authorAlejandro Colomar <alx@kernel.org>
Sat, 2 Sep 2023 14:19:58 +0000 (16:19 +0200)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Mon, 4 Dec 2023 10:45:09 +0000 (11:45 +0100)
commit62772039b739c06395dabcaa83c37d7d6d3a0e0d
tree99af40cb4c1e07eeedf33a2a700db763b0f12b72
parent0c1ca49be334a6583fa1b994525b23ea4b1edc59
src/gpasswd.c: Simplify cpp conditional

Since failure() is [[noreturn]], we can invert the conditional so that
we don't need an else.  This silences a -Wunused-parameter warning.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
src/gpasswd.c