X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2FWHOHandler.c;h=5db3db6a3d58be68ad50a402308033f61d004c6c;hp=3294e3802f3a244575dc0a1901795f379138f16e;hb=HEAD;hpb=29dd2a00d5d26bb042dfbe90fdd96eea1a0be300 diff --git a/src/WHOHandler.c b/src/WHOHandler.c index 3294e38..5db3db6 100644 --- a/src/WHOHandler.c +++ b/src/WHOHandler.c @@ -23,6 +23,7 @@ #include "ClientSocket.h" #include "IPNode.h" #include "modules.h" +#include "log.h" #define WHOQUEUETYPE_ISONQUEUE 0x01 #define WHOQUEUETYPE_USERLIST 0x02 @@ -65,7 +66,7 @@ static struct WHOQueueEntry* addWHOQueueEntry(struct ClientSocket *client) { struct WHOQueueEntry *entry = malloc(sizeof(*entry)); if (!entry) { - perror("malloc() failed"); + printf_log("main", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__); DESYNCHRONIZE(whohandler_sync); return NULL; }