summaryrefslogtreecommitdiffstats
path: root/usr.bin/w
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1995-09-04 01:22:54 +0000
committerpeter <peter@FreeBSD.org>1995-09-04 01:22:54 +0000
commit136c23f685c96f47a2db6da80d7a1488c1c14582 (patch)
tree2d8089156b3f1ca1485ed01ae1e0431a03d397c0 /usr.bin/w
parent791992935e57c6317ac27431773cdbf226a378de (diff)
downloadFreeBSD-src-136c23f685c96f47a2db6da80d7a1488c1c14582.zip
FreeBSD-src-136c23f685c96f47a2db6da80d7a1488c1c14582.tar.gz
Increase the tty column width from 2 to 3 characters.
This gives us more room to breath with tty names, especially with drivers that support large numbers of ports.. eg: specialix and digiboard. This does not actually change the current tty names, it just allows room for reporting more characters if the drivers use them.
Diffstat (limited to 'usr.bin/w')
-rw-r--r--usr.bin/w/w.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c
index e7cafca..664d56f 100644
--- a/usr.bin/w/w.c
+++ b/usr.bin/w/w.c
@@ -225,7 +225,7 @@ main(argc, argv)
if (wcmd == 0)
exit (0);
-#define HEADER "USER TTY FROM LOGIN@ IDLE WHAT\n"
+#define HEADER "USER TTY FROM LOGIN@ IDLE WHAT\n"
#define WUSED (sizeof (HEADER) - sizeof ("WHAT\n"))
(void)printf(HEADER);
}
@@ -318,7 +318,7 @@ main(argc, argv)
ep->utmp.ut_host + UT_HOSTSIZE - x, x);
p = buf;
}
- (void)printf("%-*.*s %-2.2s %-*.*s ",
+ (void)printf("%-*.*s %-3.3s %-*.*s ",
UT_NAMESIZE, UT_NAMESIZE, ep->utmp.ut_name,
strncmp(ep->utmp.ut_line, "tty", 3) &&
strncmp(ep->utmp.ut_line, "cua", 3) ?
OpenPOWER on IntegriCloud