diff options
author | ed <ed@FreeBSD.org> | 2009-12-25 20:07:48 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-12-25 20:07:48 +0000 |
commit | 2f4287b1338caa52535b49c6af74ecf62ecdb8ed (patch) | |
tree | 5c8ff77a347c83f9a9f03e45dc51f6d3bc0a4993 /usr.bin/rwho | |
parent | b2c0c6915e138dcf4d112d0e6d98035760ac1851 (diff) | |
download | FreeBSD-src-2f4287b1338caa52535b49c6af74ecf62ecdb8ed.zip FreeBSD-src-2f4287b1338caa52535b49c6af74ecf62ecdb8ed.tar.gz |
Let the width of the username column depend on the rwho file format.
Right now the code uses UT_NAMESIZE, but this makes little sense,
because rwho(1) parses files generated by rwhod(8). Not utmp(5) files.
Diffstat (limited to 'usr.bin/rwho')
-rw-r--r-- | usr.bin/rwho/rwho.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/rwho/rwho.c b/usr.bin/rwho/rwho.c index be82ad3..b41bed8 100644 --- a/usr.bin/rwho/rwho.c +++ b/usr.bin/rwho/rwho.c @@ -61,7 +61,6 @@ __FBSDID("$FreeBSD$"); #include <time.h> #include <timeconv.h> #include <unistd.h> -#include <utmp.h> DIR *dirp; @@ -172,7 +171,7 @@ main(int argc, char *argv[]) (void)sprintf(buf, "%s:%-.*s", mp->myhost, sizeof(mp->myutmp.out_line), mp->myutmp.out_line); printf("%-*.*s %-*s %s", - UT_NAMESIZE, sizeof(mp->myutmp.out_name), + sizeof(mp->myutmp.out_name), sizeof(mp->myutmp.out_name), mp->myutmp.out_name, width, buf, |