X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2FIRCEvents.c;h=2eea34d8ecc1067bddf693e2a721b6a748abeee7;hp=972850249a9f2d71970bbe70922d553c9936b6c6;hb=HEAD;hpb=6a396ce22d80a3df950e7c809ac08cd101ee8543 diff --git a/src/IRCEvents.c b/src/IRCEvents.c index 9728502..2eea34d 100644 --- a/src/IRCEvents.c +++ b/src/IRCEvents.c @@ -21,6 +21,7 @@ #include "ChanUser.h" #include "ClientSocket.h" #include "mysqlConn.h" +#include "log.h" struct binding { void *func; @@ -105,7 +106,7 @@ int bind_##NAME(FUNCTYPE *func, int module_id) { \ if(!is_bound(TYPE, func)) { \ struct binding *cbind = malloc(sizeof(*cbind)); \ if (!cbind) { \ - perror("malloc() failed"); \ + printf_log("main", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__); \ return 0; \ } \ cbind->func = func; \