From 7b655a5e17d4ce4bd3642901e2790196b0da283f Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Mon, 8 Mar 2021 09:49:44 +0100 Subject: [PATCH] Merge two identical #ifdef's --- src/misc.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/misc.c b/src/misc.c index f987ba413..28d5da5c9 100644 --- a/src/misc.c +++ b/src/misc.c @@ -168,11 +168,7 @@ void ircd_log(int flags, FORMAT_STRING(const char *format), ...) if (logs->logfd == -1) { /* Try to open, so we can write the 'Max file size reached' message. */ -#ifndef _WIN32 logs->logfd = fd_fileopen(logs->file, O_CREAT|O_APPEND|O_WRONLY); -#else - logs->logfd = fd_fileopen(logs->file, O_CREAT|O_APPEND|O_WRONLY); -#endif } if (logs->logfd != -1) { @@ -195,11 +191,7 @@ void ircd_log(int flags, FORMAT_STRING(const char *format), ...) continue; } else if (logs->logfd == -1) { -#ifndef _WIN32 logs->logfd = fd_fileopen(logs->file, O_CREAT|O_APPEND|O_WRONLY); -#else - logs->logfd = fd_fileopen(logs->file, O_CREAT|O_APPEND|O_WRONLY); -#endif if (logs->logfd == -1) { if (!loop.ircd_booted)