X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Fio.c;h=037c4afca2af7c0cf9662058ee2a18d3a92b12eb;hb=798de94d6556bdf2c6019f368ad7441fe6e2d1be;hp=b2127f255af0faf135b07ba40f5113f60f17d266;hpb=b130b35f48d19450240748425e12d21f2c38350f;p=ngircd-alex.git diff --git a/src/ngircd/io.c b/src/ngircd/io.c index b2127f25..037c4afc 100644 --- a/src/ngircd/io.c +++ b/src/ngircd/io.c @@ -1,11 +1,13 @@ /* + * ngIRCd -- The Next Generation IRC Daemon + * Copyright (c)2005-2006 Florian Westphal (westphal@foo.fh-furtwangen.de) + * Copyright (c)2006-2014 Alexander Barton (alex@barton.de) and Contributors. + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * Please read the file COPYING, README and AUTHORS for more information. - * - * Copyright (c) 2005 Florian Westphal (westphal@foo.fh-furtwangen.de) */ #include "portab.h" @@ -15,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 #include #include @@ -26,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); @@ -142,7 +144,7 @@ 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) {