From a4f43a8a534165bf03f872e91d1c47b1137fb169 Mon Sep 17 00:00:00 2001 From: peter Date: Sun, 26 Oct 2003 05:05:48 +0000 Subject: Fix a warning that showed up on 64 bit systems. It was actually a real bug that had been swept under the carpet. --- usr.bin/who/who.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/who/who.c') 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); -- cgit v1.1