From b5460aa75b929e3d756678ffec8d1968b9800a5d Mon Sep 17 00:00:00 2001 From: dd Date: Sun, 17 Jun 2001 02:01:43 +0000 Subject: Don't call printf without a format string (harmless in this case). --- usr.sbin/pstat/pstat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/pstat') diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c index 96f26b0..bf42a84 100644 --- a/usr.sbin/pstat/pstat.c +++ b/usr.sbin/pstat/pstat.c @@ -730,7 +730,7 @@ ttymode() struct tty ttyb[1000]; int error, len, i; - (void)printf(hdr); + (void)printf("%s", hdr); len = sizeof(ttyb); error = sysctlbyname("kern.ttys", &ttyb, &len, 0, 0); if (!error) { @@ -787,7 +787,7 @@ ttytype(tty, name, type, number, indir) } else { KGET1(type, tty, ntty * sizeof(struct tty), "tty structs"); } - (void)printf(hdr); + (void)printf("%s", hdr); for (tp = tty; tp < &tty[ntty]; tp++) ttyprt(tp, tp - tty); } -- cgit v1.1