From a4f43a8a534165bf03f872e91d1c47b1137fb169 Mon Sep 17 00:00:00 2001 From: peter Date: Sun, 26 Oct 2003 05:05:48 +0000 Subject: [PATCH] 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(-) 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);