]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/io.c
Streamline DEBUG_ARRAY, DEBUG_BUFFER, DEBUG_IO, DEBUG_ZIP
[ngircd-alex.git] / src / ngircd / io.c
index 779e7492ab010e8b9d81d3aa81f5b6b2a53e5c11..037c4afca2af7c0cf9662058ee2a18d3a92b12eb 100644 (file)
@@ -17,6 +17,9 @@
  * I/O abstraction interface.
  */
 
  * 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>
 #include <assert.h>
 #include <string.h>
 #include <sys/types.h>
@@ -28,9 +31,6 @@
 #include "io.h"
 #include "log.h"
 
 #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);
 typedef struct {
 #ifdef PROTOTYPES
  void (*callback)(int, short);
@@ -144,7 +144,7 @@ static array io_events;
 
 static void io_docallback PARAMS((int fd, short what));
 
 
 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)
 {
 static void
 io_debug(const char *s, int fd, int what)
 {