svn commit: r229175 - stable/9/sbin/atm/atmconfig

Dimitry Andric dim at FreeBSD.org
Sun Jan 1 17:27:32 UTC 2012


Author: dim
Date: Sun Jan  1 17:27:31 2012
New Revision: 229175
URL: http://svn.freebsd.org/changeset/base/229175

Log:
  MFC r228611:
  
  In sbin/atm/atmconfig/diag.c, fix a few warnings about format strings
  not being literals.

Modified:
  stable/9/sbin/atm/atmconfig/diag.c
Directory Properties:
  stable/9/sbin/atm/atmconfig/   (props changed)

Modified: stable/9/sbin/atm/atmconfig/diag.c
==============================================================================
--- stable/9/sbin/atm/atmconfig/diag.c	Sun Jan  1 17:23:03 2012	(r229174)
+++ stable/9/sbin/atm/atmconfig/diag.c	Sun Jan  1 17:27:31 2012	(r229175)
@@ -426,7 +426,7 @@ diag_loop(int argc, char *argv[], const 
 		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 
 		}
 	} 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 
 		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 
 				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;


More information about the svn-src-stable-9 mailing list