mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 04:53:28 +00:00
In usr.sbin/pmccontrol/pmccontrol.c, fix a few warnings about format
strings not being literals. MFC after: 1 week
This commit is contained in:
parent
9a3df8edd1
commit
e2d0cd59c3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228671
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user