diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-02-15 14:17:50 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-02-16 16:10:14 +0100 |
commit | ab4ab13c748b86b19ead4ab3bd39a3e4f5d6deb3 (patch) | |
tree | eba5573e2d66b6a14c5f3768f75049aef4184e54 /src/locale/localectl.c | |
parent | manager: fix memleak on repeated systemd.setenv keys (diff) | |
download | systemd-ab4ab13c748b86b19ead4ab3bd39a3e4f5d6deb3.tar.xz systemd-ab4ab13c748b86b19ead4ab3bd39a3e4f5d6deb3.zip |
locale: inline iterator variable declarations
Diffstat (limited to 'src/locale/localectl.c')
-rw-r--r-- | src/locale/localectl.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/locale/localectl.c b/src/locale/localectl.c index c267db9edd..548ac8eb2c 100644 --- a/src/locale/localectl.c +++ b/src/locale/localectl.c @@ -55,7 +55,6 @@ static void status_info_clear(StatusInfo *info) { static void print_overridden_variables(void) { _cleanup_(locale_variables_freep) char *variables[_VARIABLE_LC_MAX] = {}; bool print_warning = true; - LocaleVariable j; int r; if (arg_transport != BUS_TRANSPORT_LOCAL) @@ -82,7 +81,7 @@ static void print_overridden_variables(void) { return; } - for (j = 0; j < _VARIABLE_LC_MAX; j++) + for (LocaleVariable j = 0; j < _VARIABLE_LC_MAX; j++) if (variables[j]) { if (print_warning) { log_warning("Warning: Settings on kernel command line override system locale settings in /etc/locale.conf.\n" |