svn commit: r213785 - in head/lib/libc: net sys
Rui Paulo
rpaulo at FreeBSD.org
Wed Oct 13 16:57:07 UTC 2010
Author: rpaulo
Date: Wed Oct 13 16:57:06 2010
New Revision: 213785
URL: http://svn.freebsd.org/changeset/base/213785
Log:
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>
Modified:
head/lib/libc/net/nslexer.l
head/lib/libc/sys/stack_protector.c
Modified: head/lib/libc/net/nslexer.l
==============================================================================
--- head/lib/libc/net/nslexer.l Wed Oct 13 16:34:08 2010 (r213784)
+++ head/lib/libc/net/nslexer.l Wed Oct 13 16:57:06 2010 (r213785)
@@ -53,6 +53,7 @@ static char *rcsid =
#include "nsparser.h"
+#define YY_NO_INPUT
#define YY_NO_UNPUT
%}
Modified: head/lib/libc/sys/stack_protector.c
==============================================================================
--- head/lib/libc/sys/stack_protector.c Wed Oct 13 16:34:08 2010 (r213784)
+++ head/lib/libc/sys/stack_protector.c Wed Oct 13 16:57:06 2010 (r213785)
@@ -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);
More information about the svn-src-head
mailing list