summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pmccontrol
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-12-17 23:39:13 +0000
committerdim <dim@FreeBSD.org>2011-12-17 23:39:13 +0000
commit0dd9212d5bde2b2b4bb4d7c0b726d12395b8ab50 (patch)
treef4dbcf65dc2214a8f60e738a24923b2e891c1741 /usr.sbin/pmccontrol
parent45ec4ed05861af4d5fa1803c522d61d29def8c29 (diff)
downloadFreeBSD-src-0dd9212d5bde2b2b4bb4d7c0b726d12395b8ab50.zip
FreeBSD-src-0dd9212d5bde2b2b4bb4d7c0b726d12395b8ab50.tar.gz
In usr.sbin/pmccontrol/pmccontrol.c, fix a few warnings about format
strings not being literals. MFC after: 1 week
Diffstat (limited to 'usr.sbin/pmccontrol')
-rw-r--r--usr.sbin/pmccontrol/pmccontrol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pmccontrol/pmccontrol.c b/usr.sbin/pmccontrol/pmccontrol.c
index f0bd31f..bc0ebdc 100644
--- a/usr.sbin/pmccontrol/pmccontrol.c
+++ b/usr.sbin/pmccontrol/pmccontrol.c
@@ -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);
OpenPOWER on IntegriCloud