From: Jim Meyering Date: Tue, 14 Oct 2003 20:59:50 +0000 (+0000) Subject: (decode_switches) [TIOCGWINSZ]: Comment out the X-Git-Tag: v5.1.0~410 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92f4be12b1e2f8e77260b34cc609a5b850c8719c;p=thirdparty%2Fcoreutils.git (decode_switches) [TIOCGWINSZ]: Comment out the warning-inducing test, ws.ws_col <= SIZE_MAX, since it was always true on Linux. --- diff --git a/src/ls.c b/src/ls.c index f011f5fa1c..3680020246 100644 --- a/src/ls.c +++ b/src/ls.c @@ -1334,7 +1334,7 @@ decode_switches (int argc, char **argv) struct winsize ws; if (ioctl (STDOUT_FILENO, TIOCGWINSZ, &ws) != -1 - && 0 < ws.ws_col && ws.ws_col <= SIZE_MAX) + && 0 < ws.ws_col /* && ws.ws_col <= SIZE_MAX */ ) line_length = ws.ws_col; } #endif