#include "UserNode.h"
#include "ChanNode.h"
#include "DBHelper.h"
+#include "log.h"
static struct Event *first_event = NULL, *last_event = NULL;
struct Event *event = malloc(sizeof(*event));
if (!event)
{
- perror("malloc() failed");
+ printf_log("main", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__);
return NULL;
}
event->client = client;