X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2FHandleInfoHandler.c;h=8a8a46ce3a0ce205b422c01907c28f62c9e78835;hp=c6a2efe808d2447330084c5396584613f64c2c9b;hb=f6bdc9d0fc8db22c265918f3325e11177fd001b9;hpb=902ebfe5551be2daa3edf8141bcee91f62c0a5e0 diff --git a/src/HandleInfoHandler.c b/src/HandleInfoHandler.c index c6a2efe..8a8a46c 100644 --- a/src/HandleInfoHandler.c +++ b/src/HandleInfoHandler.c @@ -1,4 +1,4 @@ -/* HandleInfoHandler.c - NeonServ v5.3 +/* HandleInfoHandler.c - NeonServ v5.6 * Copyright (C) 2011-2012 Philipp Kreil (pk910) * * This program is free software: you can redistribute it and/or modify @@ -22,6 +22,7 @@ #include "IRCEvents.h" #include "tools.h" #include "modules.h" +#include "log.h" #define AUTHSERV_NICK "AuthServ" @@ -40,7 +41,7 @@ static struct HandleInfoQueueEntry* addHandleInfoQueueEntry(struct ClientSocket struct HandleInfoQueueEntry *entry = malloc(sizeof(*entry)); if (!entry) { - perror("malloc() failed"); + printf_log("main", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__); return NULL; } SYNCHRONIZE(cache_sync);