From: Pádraig Brady Date: Wed, 28 Jul 2021 22:16:02 +0000 (+0100) Subject: maint: avoid syntax-check failures in recent ls changes X-Git-Tag: v9.0~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eca33373ce9bab460f06ab037746a8d71cf34ec6;p=thirdparty%2Fcoreutils.git maint: avoid syntax-check failures in recent ls changes * src/ls.c: Fix ifdef indenting and long line. --- diff --git a/src/ls.c b/src/ls.c index 03ab2f797a..1047801e84 100644 --- 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 (_("\