In sbin/atm/atmconfig/diag.c, fix a few warnings about format strings

not being literals.

MFC after:	1 week
This commit is contained in:
Dimitry Andric 2011-12-17 00:26:45 +00:00
parent c0a8e7ad42
commit 5323d72245
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228611

View File

@ -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;