From 92f4be12b1e2f8e77260b34cc609a5b850c8719c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 14 Oct 2003 20:59:50 +0000 Subject: (decode_switches) [TIOCGWINSZ]: Comment out the warning-inducing test, ws.ws_col <= SIZE_MAX, since it was always true on Linux. --- src/ls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ls.c b/src/ls.c index f011f5fa1..368002024 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 -- cgit v1.2.3-70-g09d2