projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afa60ee
)
(decode_switches): Don't compare a short value
author
Paul Eggert
<eggert@cs.ucla.edu>
Wed, 22 Sep 2004 19:47:38 +0000
(19:47 +0000)
committer
Paul Eggert
<eggert@cs.ucla.edu>
Wed, 22 Sep 2004 19:47:38 +0000
(19:47 +0000)
to SIZE_MAX: GCC sometimes complains.
src/ls.c
patch
|
blob
|
history
diff --git
a/src/ls.c
b/src/ls.c
index
f248ff7
..
f3d5e89
100644
(file)
--- a/
src/ls.c
+++ b/
src/ls.c
@@
-1400,7
+1400,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_t) ws.ws_col
)
line_length = ws.ws_col;
}
#endif