aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/who
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2003-10-26 05:05:48 +0000
committerPeter Wemm <peter@FreeBSD.org>2003-10-26 05:05:48 +0000
commit10ebb45ae0ba4c7509c777abea3c0a4676484e17 (patch)
tree69bd08f61da36a606f4d6036d7d9f648c8bb48e7 /usr.bin/who
parentd75a18e3d2221b4bce7950232e7dd7f1c4a99338 (diff)
Fix a warning that showed up on 64 bit systems. It was actually a real
bug that had been swept under the carpet.
Notes
Notes: svn path=/head/; revision=121548
Diffstat (limited to 'usr.bin/who')
-rw-r--r--usr.bin/who/who.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/who/who.c b/usr.bin/who/who.c
index d31ee4766bc4..624a4c32a957 100644
--- a/usr.bin/who/who.c
+++ b/usr.bin/who/who.c
@@ -285,7 +285,7 @@ ttywidth(void)
*ep != '\0')
warnx("invalid COLUMNS environment variable ignored");
else
- return ((int)cols);
+ return (width);
}
if (ioctl(STDOUT_FILENO, TIOCGWINSZ, &ws) != -1)
return (ws.ws_col);