Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Dec 2011 23:39:13 +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: r228671 - head/usr.sbin/pmccontrol
Message-ID:  <201112172339.pBHNdD21081739@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Sat Dec 17 23:39:13 2011
New Revision: 228671
URL: http://svn.freebsd.org/changeset/base/228671

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

Modified:
  head/usr.sbin/pmccontrol/pmccontrol.c

Modified: head/usr.sbin/pmccontrol/pmccontrol.c
==============================================================================
--- head/usr.sbin/pmccontrol/pmccontrol.c	Sat Dec 17 23:35:46 2011	(r228670)
+++ head/usr.sbin/pmccontrol/pmccontrol.c	Sat Dec 17 23:39:13 2011	(r228671)
@@ -452,7 +452,7 @@ main(int argc, char **argv)
 
 		case '?':
 			warnx("Unrecognized option \"-%c\"", optopt);
-			errx(EX_USAGE, usage_message);
+			errx(EX_USAGE, "%s", usage_message);
 			break;
 
 		default:
@@ -462,7 +462,7 @@ main(int argc, char **argv)
 		}
 
 	if (command == PMCC_PRINT_USAGE)
-		(void) errx(EX_USAGE, usage_message);
+		(void) errx(EX_USAGE, "%s", usage_message);
 
 	if (error)
 		exit(EX_USAGE);



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