diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2011-10-16 08:54:41 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2011-10-16 08:54:41 +0000 |
| commit | c75216d258e46c3e5438d12d5d91608bd8bd22f8 (patch) | |
| tree | 3936adf9cb10e5fd7031edd84c773a4c9d0707ef /usr.bin/rwho | |
| parent | 1e47e0ca1b19f3677186c170cd1ba635464e1c2c (diff) | |
Notes
Diffstat (limited to 'usr.bin/rwho')
| -rw-r--r-- | usr.bin/rwho/Makefile | 2 | ||||
| -rw-r--r-- | usr.bin/rwho/rwho.c | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/rwho/Makefile b/usr.bin/rwho/Makefile index aee9ff765f73..3fdc05d3b8f7 100644 --- a/usr.bin/rwho/Makefile +++ b/usr.bin/rwho/Makefile @@ -3,6 +3,4 @@ PROG= rwho -WARNS?= 1 - .include <bsd.prog.mk> diff --git a/usr.bin/rwho/rwho.c b/usr.bin/rwho/rwho.c index c0106c7c2163..f134c1864f0a 100644 --- a/usr.bin/rwho/rwho.c +++ b/usr.bin/rwho/rwho.c @@ -165,9 +165,10 @@ main(int argc, char *argv[]) d_first ? "%e %b %R" : "%b %e %R", localtime(&t)); (void)sprintf(buf, "%s:%-.*s", mp->myhost, - sizeof(mp->myutmp.out_line), mp->myutmp.out_line); + (int)sizeof(mp->myutmp.out_line), mp->myutmp.out_line); printf("%-*.*s %-*s %s", - sizeof(mp->myutmp.out_name), sizeof(mp->myutmp.out_name), + (int)sizeof(mp->myutmp.out_name), + (int)sizeof(mp->myutmp.out_name), mp->myutmp.out_name, width, buf, |
