dcavalca / rpms / systemd

Forked from rpms/systemd 4 months ago
Clone
594167
From bc5efb385f238fc7b9cbf552c61269fd680e2c94 Mon Sep 17 00:00:00 2001
594167
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
594167
Date: Thu, 7 Apr 2022 11:22:08 +0200
594167
Subject: [PATCH] core: inline an iterator variable
594167
594167
(cherry picked from commit 32adc3a7cab85ce543d6895d644a52c6965a274c)
594167
594167
Related: #2087652
594167
---
594167
 src/core/locale-setup.c | 3 +--
594167
 1 file changed, 1 insertion(+), 2 deletions(-)
594167
594167
diff --git a/src/core/locale-setup.c b/src/core/locale-setup.c
594167
index 59ddb9c487..716febbefa 100644
594167
--- a/src/core/locale-setup.c
594167
+++ b/src/core/locale-setup.c
594167
@@ -16,7 +16,6 @@
594167
 int locale_setup(char ***environment) {
594167
         _cleanup_(locale_variables_freep) char *variables[_VARIABLE_LC_MAX] = {};
594167
         _cleanup_strv_free_ char **add = NULL;
594167
-        LocaleVariable i;
594167
         int r;
594167
 
594167
         r = proc_cmdline_get_key_many(PROC_CMDLINE_STRIP_RD_PREFIX,
594167
@@ -58,7 +57,7 @@ int locale_setup(char ***environment) {
594167
                         log_warning_errno(r, "Failed to read /etc/locale.conf: %m");
594167
         }
594167
 
594167
-        for (i = 0; i < _VARIABLE_LC_MAX; i++) {
594167
+        for (LocaleVariable i = 0; i < _VARIABLE_LC_MAX; i++) {
594167
                 char *s;
594167
 
594167
                 if (!variables[i])