]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/io.c
S2S-TLS/OpenSSL: Set the verification flags only once
[ngircd-alex.git] / src / ngircd / io.c
index 779e7492ab010e8b9d81d3aa81f5b6b2a53e5c11..2a1e941e8e91b89347f4c80b86b38497a708fcd3 100644 (file)
@@ -17,6 +17,9 @@
  * I/O abstraction interface.
  */
 
+/* Extra debug messages in event add/delete/callback code: 0=off / 1=on */
+#define DEBUG_IO 0
+
 #include <assert.h>
 #include <string.h>
 #include <sys/types.h>
@@ -28,9 +31,6 @@
 #include "io.h"
 #include "log.h"
 
-/* Enables extra debug messages in event add/delete/callback code. */
-/* #define DEBUG_IO */
-
 typedef struct {
 #ifdef PROTOTYPES
  void (*callback)(int, short);
@@ -144,11 +144,11 @@ static array io_events;
 
 static void io_docallback PARAMS((int fd, short what));
 
-#ifdef DEBUG_IO
+#if DEBUG_IO
 static void
 io_debug(const char *s, int fd, int what)
 {
-       Log(LOG_DEBUG, "%s: %d, %d\n", s, fd, what);
+       LogDebug("%s: %d, %d\n", s, fd, what);
 }
 #else
 static inline void