X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Ftimeq.c;h=c18227a9d9b837aec76a18033a0e8a9579969170;hb=ee39770362f69ced5b52104b622582e882af0b77;hp=0136c51a473f6b8b0bde5b9fd1026267a6a26672;hpb=8ce78bf760720d04385821abba8f888b5de03140;p=NeonServV5.git diff --git a/src/timeq.c b/src/timeq.c index 0136c51..c18227a 100644 --- a/src/timeq.c +++ b/src/timeq.c @@ -17,6 +17,8 @@ #include "timeq.h" #include "IOHandler.h" +#include "tools.h" +#include "log.h" static struct timeq_entry *timeq_events; #ifdef HAVE_THREADS @@ -46,7 +48,7 @@ struct timeq_entry* timeq_uadd(int useconds, int module_id, timeq_callback_t *ca struct timeq_entry *entry = malloc(sizeof(*entry)); if (!entry) { - perror("malloc() failed"); + printf_log("main", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__); return NULL; } #ifdef HAVE_THREADS