summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/rwho/Makefile2
-rw-r--r--usr.bin/rwho/rwho.c5
2 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/rwho/Makefile b/usr.bin/rwho/Makefile
index aee9ff7..3fdc05d 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 c0106c7..f134c18 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,
OpenPOWER on IntegriCloud