summaryrefslogtreecommitdiffstats
path: root/src/locale/localectl.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-15 14:17:50 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-16 16:10:14 +0100
commitab4ab13c748b86b19ead4ab3bd39a3e4f5d6deb3 (patch)
treeeba5573e2d66b6a14c5f3768f75049aef4184e54 /src/locale/localectl.c
parentmanager: fix memleak on repeated systemd.setenv keys (diff)
downloadsystemd-ab4ab13c748b86b19ead4ab3bd39a3e4f5d6deb3.tar.xz
systemd-ab4ab13c748b86b19ead4ab3bd39a3e4f5d6deb3.zip
locale: inline iterator variable declarations
Diffstat (limited to 'src/locale/localectl.c')
-rw-r--r--src/locale/localectl.c3
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"