X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2Ftools.c;h=0232671c5050767aca56177a5bf5a7731ce0449d;hp=5447232a347f391f5881ff7a4cdf6244aa24e000;hb=ee39770362f69ced5b52104b622582e882af0b77;hpb=88751acefe20e568fc945d7e5f5c11e0a9c7be60 diff --git a/src/tools.c b/src/tools.c index 5447232..0232671 100644 --- a/src/tools.c +++ b/src/tools.c @@ -20,6 +20,7 @@ #include "lang.h" #include "ClientSocket.h" #include "IPNode.h" +#include "log.h" static const struct default_language_entry msgtab[] = { {"TIME_MASK_2_ITEMS", "%s and %s"}, /* {ARGS: "2 days", "1 hour"} */ @@ -388,7 +389,7 @@ int getCurrentSecondsOfDay() { struct ModeBuffer* initModeBuffer(struct ClientSocket *client, struct ChanNode *chan) { struct ModeBuffer *modeBuf = malloc(sizeof(*modeBuf)); if(!modeBuf) { - perror("malloc() failed"); + printf_log("main", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__); return NULL; } modeBuf->client = client;