]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: avoid syntax-check failures in recent ls changes
authorPádraig Brady <P@draigBrady.com>
Wed, 28 Jul 2021 22:16:02 +0000 (23:16 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 28 Jul 2021 22:16:50 +0000 (23:16 +0100)
* src/ls.c: Fix ifdef indenting and long line.

src/ls.c

index 03ab2f797a2ede9239d89a5a93f3a6282af137c0..1047801e8423496741336acd5dc659965785a147 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -2273,18 +2273,18 @@ decode_switches (int argc, char **argv)
       if (linelen < 0)
         {
           /* Suppress bogus warning re comparing ws.ws_col to big integer.  */
-#         if __GNUC_PREREQ (4, 6)
-#          pragma GCC diagnostic push
-#          pragma GCC diagnostic ignored "-Wtype-limits"
-#         endif
+# if __GNUC_PREREQ (4, 6)
+#  pragma GCC diagnostic push
+#  pragma GCC diagnostic ignored "-Wtype-limits"
+# endif
           struct winsize ws;
           if (stdout_isatty ()
               && 0 <= ioctl (STDOUT_FILENO, TIOCGWINSZ, &ws)
               && 0 < ws.ws_col)
             linelen = ws.ws_col <= MIN (PTRDIFF_MAX, SIZE_MAX) ? ws.ws_col : 0;
-#         if __GNUC_PREREQ (4, 6)
-#          pragma GCC diagnostic pop
-#         endif
+# if __GNUC_PREREQ (4, 6)
+#  pragma GCC diagnostic pop
+# endif
         }
 #endif
       if (linelen < 0)
@@ -5477,7 +5477,8 @@ Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.\n\
 \n\
 "), stdout);
       fputs (_("\
-  -k, --kibibytes            default to 1024-byte blocks for file system usage;\n\
+  -k, --kibibytes            default to 1024-byte blocks for file system usage;\
+\n\
                                used only with -s and per directory totals\n\
 "), stdout);
       fputs (_("\