Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Dec 2011 00:26:45 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r228611 - head/sbin/atm/atmconfig
Message-ID:  <201112170026.pBH0QjGE034417@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Sat Dec 17 00:26:45 2011
New Revision: 228611
URL: http://svn.freebsd.org/changeset/base/228611

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

Modified:
  head/sbin/atm/atmconfig/diag.c

Modified: head/sbin/atm/atmconfig/diag.c
==============================================================================
--- head/sbin/atm/atmconfig/diag.c	Sat Dec 17 00:14:40 2011	(r228610)
+++ head/sbin/atm/atmconfig/diag.c	Sat Dec 17 00:26:45 2011	(r228611)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112170026.pBH0QjGE034417>