summaryrefslogtreecommitdiffstats
path: root/usr.bin/who
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-10-26 05:05:48 +0000
committerpeter <peter@FreeBSD.org>2003-10-26 05:05:48 +0000
commita4f43a8a534165bf03f872e91d1c47b1137fb169 (patch)
tree69bd08f61da36a606f4d6036d7d9f648c8bb48e7 /usr.bin/who
parent57e85f66801fc112ae3ee408fb45482d456dcc16 (diff)
downloadFreeBSD-src-a4f43a8a534165bf03f872e91d1c47b1137fb169.zip
FreeBSD-src-a4f43a8a534165bf03f872e91d1c47b1137fb169.tar.gz
Fix a warning that showed up on 64 bit systems. It was actually a real
bug that had been swept under the carpet.
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 d31ee47..624a4c3 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);
OpenPOWER on IntegriCloud