Pretty sure these functions shouldn't be exported in the
shared library:

event_err
event_warn
event_errx
event_warnx
event_msgx
_event_debugx

I think this is correct usage of __BEGIN_HIDDEN_DECLS?

diff /usr/src
commit - c91a0f502346babf19c59a6b6d974a94c32ea1b1
path + /usr/src
blob - 2f3509409475601c608d75fae9d283abb921c989
file + lib/libevent/log.h
--- lib/libevent/log.h
+++ lib/libevent/log.h
@@ -29,6 +29,10 @@
 #ifndef _LOG_H_
 #define _LOG_H_
 
+#include <sys/types.h>
+
+__BEGIN_HIDDEN_DECLS
+
 #ifdef __GNUC__
 #define EV_CHECK_FMT(a,b) __attribute__((format(printf, a, b)))
 #else
@@ -50,4 +54,6 @@ void _event_debugx(const char *fmt, ...) EV_CHECK_FMT(
 
 #undef EV_CHECK_FMT
 
+__END_HIDDEN_DECLS
+
 #endif

Reply via email to