summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--log-internal.h4
-rw-r--r--log.c6
2 files changed, 2 insertions, 8 deletions
diff --git a/log-internal.h b/log-internal.h
index 1451ab2a..fb53df41 100644
--- a/log-internal.h
+++ b/log-internal.h
@@ -48,8 +48,8 @@ extern "C" {
#endif
#ifdef EVENT_DEBUG_LOGGING_ENABLED
-EVENT2_EXPORT_SYMBOL
-int event_debug_get_logging_mask_();
+EVENT2_EXPORT_SYMBOL extern ev_uint32_t event_debug_logging_mask_;
+#define event_debug_get_logging_mask_() (event_debug_logging_mask_)
#else
#define event_debug_get_logging_mask_() (0)
#endif
diff --git a/log.c b/log.c
index 5a55ab75..a9debb86 100644
--- a/log.c
+++ b/log.c
@@ -70,12 +70,6 @@ static event_fatal_cb fatal_fn = NULL;
#endif
EVENT2_EXPORT_SYMBOL ev_uint32_t event_debug_logging_mask_ = DEFAULT_MASK;
-
-EVENT2_EXPORT_SYMBOL
-int event_debug_get_logging_mask_()
-{
- return event_debug_logging_mask_;
-}
#endif /* EVENT_DEBUG_LOGGING_ENABLED */
void