mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Clang related fixes:
* When calling syslog(), pass a format string. * Define YY_NO_INPUT on nslexer.l Submitted by: Norberto Lopes <nlopes.ml at gmail.com>
This commit is contained in:
parent
1aee0aeb6d
commit
565424b2fd
2 changed files with 2 additions and 1 deletions
|
|
@ -53,6 +53,7 @@ static char *rcsid =
|
|||
|
||||
#include "nsparser.h"
|
||||
|
||||
#define YY_NO_INPUT
|
||||
#define YY_NO_UNPUT
|
||||
|
||||
%}
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ __fail(const char *msg)
|
|||
(void)sigprocmask(SIG_BLOCK, &mask, NULL);
|
||||
|
||||
/* This may fail on a chroot jail... */
|
||||
syslog(LOG_CRIT, msg);
|
||||
syslog(LOG_CRIT, "%s", msg);
|
||||
|
||||
(void)memset(&sa, 0, sizeof(sa));
|
||||
(void)sigemptyset(&sa.sa_mask);
|
||||
|
|
|
|||
Loading…
Reference in a new issue