1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-07 18:43:12 +02:00

#if defined(DEBUGMODE) && !defined(_WIN32)

This commit is contained in:
Bram Matthys
2006-11-05 00:28:39 +00:00
parent a7fbab3cb9
commit 3fa0b692ce
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -1348,3 +1348,4 @@
We now print a warning when this happens (both on the IRC command and command-line).
Suggested by JasonTik (#0002953).
- Win32: Fixed a few compiler warnings, suggested by Zell (#0002890).
- Moved a couple isatty() calls to DEBUGMODE (#0002945).
+2 -2
View File
@@ -704,7 +704,7 @@ static int check_init(aClient *cptr, char *sockn, size_t size)
}
/* If descriptor is a tty, special checking... */
#ifndef _WIN32
#if defined(DEBUGMODE) && !defined(_WIN32)
if (isatty(cptr->fd))
#else
if (0)
@@ -1203,7 +1203,7 @@ aClient *add_connection(aClient *cptr, int fd)
* m_server and m_user instead. Also connection time out help to
* get rid of unwanted connections.
*/
#ifndef _WIN32
#if defined(DEBUGMODE) && !defined(_WIN32)
if (isatty(fd)) /* If descriptor is a tty, special checking... */
#else
if (0)