From 6a7763c210a466edc985f1fa51ce12f316e6fb2a Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Sun, 31 Jan 2021 14:01:13 +0100 Subject: [PATCH] More compact no-op of Windows syslog --- src/iodined.c | 16 ---------------- src/windows.h | 3 +++ 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/src/iodined.c b/src/iodined.c index eb85619..d8878bd 100644 --- a/src/iodined.c +++ b/src/iodined.c @@ -182,22 +182,6 @@ sigint(int sig) running = 0; } -#ifdef WINDOWS32 -#define LOG_EMERG 0 -#define LOG_ALERT 1 -#define LOG_CRIT 2 -#define LOG_ERR 3 -#define LOG_WARNING 4 -#define LOG_NOTICE 5 -#define LOG_INFO 6 -#define LOG_DEBUG 7 - -static void syslog(int a, const char *str, ...) -{ - /* TODO: implement (add to event log), move to common.c */ -} -#endif - /* This will not check that user has passed login challenge */ static int check_user_and_ip(int userid, struct query *q) { diff --git a/src/windows.h b/src/windows.h index 1a94fb5..065c243 100644 --- a/src/windows.h +++ b/src/windows.h @@ -98,4 +98,7 @@ struct tun_data { int addrlen; }; +/* No-op for now. */ +#define syslog(...) + #endif