diff options
author | Peter Wemm <peter@FreeBSD.org> | 2003-10-26 05:05:48 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 2003-10-26 05:05:48 +0000 |
commit | 10ebb45ae0ba4c7509c777abea3c0a4676484e17 (patch) | |
tree | 69bd08f61da36a606f4d6036d7d9f648c8bb48e7 /usr.bin/who | |
parent | d75a18e3d2221b4bce7950232e7dd7f1c4a99338 (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.c | 2 |
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); |