From 5323d72245716fca4ec5d38fc0bc3aa747d7c73c Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 17 Dec 2011 00:26:45 +0000 Subject: [PATCH] In sbin/atm/atmconfig/diag.c, fix a few warnings about format strings not being literals. MFC after: 1 week --- sbin/atm/atmconfig/diag.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sbin/atm/atmconfig/diag.c b/sbin/atm/atmconfig/diag.c index 021131834c0a..3225e107e2b6 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;