From e2d0cd59c3f31b7b3083f81117e3d7c7b9f2d68c Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 17 Dec 2011 23:39:13 +0000 Subject: [PATCH] In usr.sbin/pmccontrol/pmccontrol.c, fix a few warnings about format strings not being literals. MFC after: 1 week --- usr.sbin/pmccontrol/pmccontrol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/pmccontrol/pmccontrol.c b/usr.sbin/pmccontrol/pmccontrol.c index f0bd31ff4903..bc0ebdccfd55 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);