From 245ff38498f53b5ad97414e7b24b4a0bb5de05f8 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sat, 11 Apr 2015 21:12:56 +0200
Subject: Prepare for a custom logger in degesch
---
common.c | 12 +++++++-----
kike.c | 1 +
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/common.c b/common.c
index 288c127..759c452 100644
--- a/common.c
+++ b/common.c
@@ -22,11 +22,13 @@
#define LIBERTY_WANT_POLLER
#define LIBERTY_WANT_PROTO_IRC
-#define print_fatal_data ((void *) LOG_ERR)
-#define print_error_data ((void *) LOG_ERR)
-#define print_warning_data ((void *) LOG_WARNING)
-#define print_status_data ((void *) LOG_INFO)
-#define print_debug_data ((void *) LOG_DEBUG)
+#ifdef WANT_SYSLOG_LOGGING
+ #define print_fatal_data ((void *) LOG_ERR)
+ #define print_error_data ((void *) LOG_ERR)
+ #define print_warning_data ((void *) LOG_WARNING)
+ #define print_status_data ((void *) LOG_INFO)
+ #define print_debug_data ((void *) LOG_DEBUG)
+#endif // WANT_SYSLOG_LOGGING
#include "liberty/liberty.c"
#include
diff --git a/kike.c b/kike.c
index 127fcd2..83f9d85 100644
--- a/kike.c
+++ b/kike.c
@@ -22,6 +22,7 @@
#undef PROGRAM_NAME
#define PROGRAM_NAME "kike"
+#define WANT_SYSLOG_LOGGING
#include "common.c"
#include "kike-replies.c"
#include
--
cgit v1.2.3-70-g09d2