]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core: inline an iterator variable
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 7 Apr 2022 09:22:08 +0000 (11:22 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 7 Apr 2022 10:42:23 +0000 (12:42 +0200)
src/core/locale-setup.c

index 59ddb9c48758272306590383ed090effa3c333e8..716febbefa25e5b38cdede3dfc71e8b17bc2337d 100644 (file)
@@ -16,7 +16,6 @@
 int locale_setup(char ***environment) {
         _cleanup_(locale_variables_freep) char *variables[_VARIABLE_LC_MAX] = {};
         _cleanup_strv_free_ char **add = NULL;
-        LocaleVariable i;
         int r;
 
         r = proc_cmdline_get_key_many(PROC_CMDLINE_STRIP_RD_PREFIX,
@@ -58,7 +57,7 @@ int locale_setup(char ***environment) {
                         log_warning_errno(r, "Failed to read /etc/locale.conf: %m");
         }
 
-        for (i = 0; i < _VARIABLE_LC_MAX; i++) {
+        for (LocaleVariable i = 0; i < _VARIABLE_LC_MAX; i++) {
                 char *s;
 
                 if (!variables[i])