From c01c5d5c467d243241818e076bc9a7737b7b2b90 Mon Sep 17 00:00:00 2001
From: Dima Dorfman
Date: Sun, 17 Jun 2001 02:01:43 +0000
Subject: [PATCH] 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(-)
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c
index 96f26b028e49..bf42a841f6da 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);
}