From: Zbigniew Jędrzejewski-Szmek Date: Tue, 4 Oct 2022 12:14:13 +0000 (+0200) Subject: pam_systemd_home: inline loop variable declaration X-Git-Tag: v252-rc2~70^2~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2b9e90554087154126fedb5f8a70abaefececb0c;p=thirdparty%2Fsystemd.git pam_systemd_home: inline loop variable declaration --- diff --git a/src/home/pam_systemd_home.c b/src/home/pam_systemd_home.c index 35195c2ef0d..cddb7b3a2ce 100644 --- a/src/home/pam_systemd_home.c +++ b/src/home/pam_systemd_home.c @@ -25,12 +25,10 @@ static int parse_argv( bool *please_suspend, bool *debug) { - int i; - assert(argc >= 0); assert(argc == 0 || argv); - for (i = 0; i < argc; i++) { + for (int i = 0; i < argc; i++) { const char *v; if ((v = startswith(argv[i], "suspend="))) {