mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-01 08:27:59 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213785
@ -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 New Issue
Block a user