Merge two identical #ifdef's

This commit is contained in:
Bram Matthys 2021-03-08 09:49:44 +01:00
parent 29e8c2c770
commit 7b655a5e17
No known key found for this signature in database
GPG key ID: BF8116B163EAAE98

View file

@ -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)