mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
journal-remote: inline one more iterator variable declaration
This commit is contained in:
parent
9c7f220173
commit
b01031e3ff
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user