From: Alejandro Colomar Date: Fri, 26 Dec 2025 17:29:10 +0000 (+0100) Subject: src/: Cosmetic X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bbbdda99e658264e00ac2e17786d05a413a89367;p=thirdparty%2Fshadow.git src/: Cosmetic Fix style. Reviewed-by: Serge Hallyn Signed-off-by: Alejandro Colomar --- diff --git a/src/chgpasswd.c b/src/chgpasswd.c index d9e37002e..48a6cfced 100644 --- a/src/chgpasswd.c +++ b/src/chgpasswd.c @@ -156,9 +156,8 @@ static void process_flags (int argc, char **argv, struct option_flags *flags) {"sha-rounds", required_argument, NULL, 's'}, {NULL, 0, NULL, '\0'} }; - while ((c = getopt_long (argc, argv, - "c:ehmR:s:", - long_options, NULL)) != -1) { + while (-1 != (c = getopt_long(argc, argv, "c:ehmR:s:", long_options, NULL))) + { switch (c) { case 'c': crypt_method = optarg; diff --git a/src/chpasswd.c b/src/chpasswd.c index de5c79c70..0b1334eb6 100644 --- a/src/chpasswd.c +++ b/src/chpasswd.c @@ -161,9 +161,8 @@ static void process_flags (int argc, char **argv, struct option_flags *flags) {NULL, 0, NULL, '\0'} }; - while ((c = getopt_long (argc, argv, - "c:ehmR:P:s:", - long_options, NULL)) != -1) { + while (-1 != (c = getopt_long(argc, argv, "c:ehmR:P:s:", long_options, NULL))) + { switch (c) { case 'c': crypt_method = optarg;