From 136c23f685c96f47a2db6da80d7a1488c1c14582 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 4 Sep 1995 01:22:54 +0000 Subject: 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. --- usr.bin/w/w.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/w') 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) ? -- cgit v1.1