Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/libevent/dist Add format string checks for _war...
details: https://anonhg.NetBSD.org/src/rev/73eed0c7992c
branches: trunk
changeset: 325802:73eed0c7992c
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Jan 07 02:09:01 2014 +0000
description:
Add format string checks for _warn_helper.
diffstat:
external/bsd/libevent/dist/log-internal.h | 6 ++----
external/bsd/libevent/dist/log.c | 6 +++---
2 files changed, 5 insertions(+), 7 deletions(-)
diffs (52 lines):
diff -r d6f3f0292c45 -r 73eed0c7992c external/bsd/libevent/dist/log-internal.h
--- a/external/bsd/libevent/dist/log-internal.h Tue Jan 07 02:07:43 2014 +0000
+++ b/external/bsd/libevent/dist/log-internal.h Tue Jan 07 02:09:01 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: log-internal.h,v 1.2 2013/04/11 16:56:41 christos Exp $ */
+/* $NetBSD: log-internal.h,v 1.3 2014/01/07 02:09:01 joerg Exp $ */
/*
* Copyright (c) 2000-2007 Niels Provos <provos%citi.umich.edu@localhost>
* Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
@@ -31,7 +31,7 @@
#include "event2/util.h"
#ifdef __GNUC__
-#define EV_CHECK_FMT(a,b) __attribute__((format(printf, a, b)))
+#define EV_CHECK_FMT(a,b) __attribute__((__format__(__printf__, a, b)))
#define EV_NORETURN __attribute__((noreturn))
#else
#define EV_CHECK_FMT(a,b)
@@ -55,6 +55,4 @@
#define event_debug(x) do {;} while (/*CONSTCOND*/0)
#endif
-#undef EV_CHECK_FMT
-
#endif
diff -r d6f3f0292c45 -r 73eed0c7992c external/bsd/libevent/dist/log.c
--- a/external/bsd/libevent/dist/log.c Tue Jan 07 02:07:43 2014 +0000
+++ b/external/bsd/libevent/dist/log.c Tue Jan 07 02:09:01 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: log.c,v 1.1.1.2 2013/04/11 16:43:26 christos Exp $ */
+/* $NetBSD: log.c,v 1.2 2014/01/07 02:09:01 joerg Exp $ */
/* $OpenBSD: err.c,v 1.2 2002/06/25 15:50:15 mickey Exp $ */
/*
@@ -40,7 +40,7 @@
#include "event2/event-config.h"
#include <sys/cdefs.h>
-__RCSID("$NetBSD: log.c,v 1.1.1.2 2013/04/11 16:43:26 christos Exp $");
+__RCSID("$NetBSD: log.c,v 1.2 2014/01/07 02:09:01 joerg Exp $");
#ifdef WIN32
#include <winsock2.h>
@@ -60,7 +60,7 @@
#include "log-internal.h"
static void _warn_helper(int severity, const char *errstr, const char *fmt,
- va_list ap);
+ va_list ap) EV_CHECK_FMT(3, 0);
static void event_log(int severity, const char *msg);
static void event_exit(int errcode) EV_NORETURN;
Home |
Main Index |
Thread Index |
Old Index