]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/pretty-print: inline one more variable declaration
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 14 Dec 2023 09:58:19 +0000 (10:58 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 30 Jan 2024 09:11:30 +0000 (10:11 +0100)
src/shared/pretty-print.c

index d28c231d58e0dd607ec303c9eaeb5b822375aacb..946da5f42ddc752561be42726ca83cfb8010c481 100644 (file)
@@ -294,14 +294,12 @@ void print_separator(void) {
          * one line filled with spaces with ANSI underline set, followed by a second (empty) line. */
 
         if (underline_enabled()) {
-                size_t i, c;
-
-                c = columns();
+                size_t c = columns();
 
                 flockfile(stdout);
                 fputs_unlocked(ANSI_UNDERLINE, stdout);
 
-                for (i = 0; i < c; i++)
+                for (size_t i = 0; i < c; i++)
                         fputc_unlocked(' ', stdout);
 
                 fputs_unlocked(ANSI_NORMAL "\n\n", stdout);