summaryrefslogtreecommitdiffstats
path: root/sbin/atm
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-12-17 00:26:45 +0000
committerdim <dim@FreeBSD.org>2011-12-17 00:26:45 +0000
commitbbe4aa1fe1af729bc126ea69a39f2eb85a2bcda1 (patch)
tree9db75268ae22bbb2bab6d2c06756d0b16345810d /sbin/atm
parent60426ce7813a3f1b8d3eea0ac7dda3dc31e4cbbc (diff)
downloadFreeBSD-src-bbe4aa1fe1af729bc126ea69a39f2eb85a2bcda1.zip
FreeBSD-src-bbe4aa1fe1af729bc126ea69a39f2eb85a2bcda1.tar.gz
In sbin/atm/atmconfig/diag.c, fix a few warnings about format strings
not being literals. MFC after: 1 week
Diffstat (limited to 'sbin/atm')
-rw-r--r--sbin/atm/atmconfig/diag.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/atm/atmconfig/diag.c b/sbin/atm/atmconfig/diag.c
index 0211318..3225e10 100644
--- a/sbin/atm/atmconfig/diag.c
+++ b/sbin/atm/atmconfig/diag.c
@@ -426,7 +426,7 @@ diag_loop(int argc, char *argv[], const char *text,
for (i = 0; i < argc; i++) {
TAILQ_FOREACH(aif, &diagif_list, link) {
if (strcmp(argv[i], aif->ifname) == 0) {
- heading(text);
+ heading("%s", text);
(*func)(aif);
break;
}
@@ -436,7 +436,7 @@ diag_loop(int argc, char *argv[], const char *text,
}
} else {
TAILQ_FOREACH(aif, &diagif_list, link) {
- heading(text);
+ heading("%s", text);
(*func)(aif);
}
}
@@ -992,7 +992,7 @@ diag_vcc_loop(void (*func)(const struct diagif *), const char *text,
TAILQ_FOREACH(aif, &diagif_list, link) {
diagif_fetch_vcc(aif, fd);
if (aif->vtab->count != 0) {
- heading(text);
+ heading("%s", text);
(*func)(aif);
}
}
@@ -1003,7 +1003,7 @@ diag_vcc_loop(void (*func)(const struct diagif *), const char *text,
if (strcmp(aif->ifname, argv[optind]) == 0) {
diagif_fetch_vcc(aif, fd);
if (aif->vtab->count != 0) {
- heading(text);
+ heading("%s", text);
(*func)(aif);
}
break;
OpenPOWER on IntegriCloud