summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-10-14 20:59:50 +0000
committerJim Meyering <jim@meyering.net>2003-10-14 20:59:50 +0000
commit92f4be12b1e2f8e77260b34cc609a5b850c8719c (patch)
tree4192a4118324ab8a25ef73e1b71376e64c6524b4
parent8061cc6dbc1ee65d49aa2b428cc2b27791457513 (diff)
downloadcoreutils-92f4be12b1e2f8e77260b34cc609a5b850c8719c.tar.xz
(decode_switches) [TIOCGWINSZ]: Comment out the
warning-inducing test, ws.ws_col <= SIZE_MAX, since it was always true on Linux.
-rw-r--r--src/ls.c2
1 files changed, 1 insertions, 1 deletions
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