From: Zbigniew Jędrzejewski-Szmek Date: Mon, 15 Feb 2021 18:48:09 +0000 (+0100) Subject: journal-remote: inline one more iterator variable declaration X-Git-Tag: v248-rc1~68^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b01031e3ff937e0ceff70aae58253bb22b5a05f4;p=thirdparty%2Fsystemd.git journal-remote: inline one more iterator variable declaration --- diff --git a/src/journal-remote/journal-remote-main.c b/src/journal-remote/journal-remote-main.c index 355a258be16..3e84c3dd7b9 100644 --- a/src/journal-remote/journal-remote-main.c +++ b/src/journal-remote/journal-remote-main.c @@ -977,10 +977,9 @@ static int parse_argv(int argc, char *argv[]) { return r; break; - case ARG_GNUTLS_LOG: { + case ARG_GNUTLS_LOG: #if HAVE_GNUTLS - const char* p = optarg; - for (;;) { + for (const char* p = optarg;;) { _cleanup_free_ char *word = NULL; r = extract_first_word(&p, &word, ",", 0); @@ -999,7 +998,6 @@ static int parse_argv(int argc, char *argv[]) { return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Option --gnutls-log is not available."); #endif - } case '?': return -EINVAL;