summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pstat
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-06-17 02:01:43 +0000
committerdd <dd@FreeBSD.org>2001-06-17 02:01:43 +0000
commitb5460aa75b929e3d756678ffec8d1968b9800a5d (patch)
tree238204d9f05eeaadd1020f817f50d9578f7ed33e /usr.sbin/pstat
parent97a5b3098dcc4ae4bc54463ac4782d8dab655f7f (diff)
downloadFreeBSD-src-b5460aa75b929e3d756678ffec8d1968b9800a5d.zip
FreeBSD-src-b5460aa75b929e3d756678ffec8d1968b9800a5d.tar.gz
Don't call printf without a format string (harmless in this case).
Diffstat (limited to 'usr.sbin/pstat')
-rw-r--r--usr.sbin/pstat/pstat.c4
1 files changed, 2 insertions, 2 deletions
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);
}
OpenPOWER on IntegriCloud