projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
do not filter access levels if not wanted (show database errors)
[NeonServV5.git]
/
src
/
timeq.c
diff --git
a/src/timeq.c
b/src/timeq.c
index b71bb7569f42480450017870cb693b063f49c3e0..c18227a9d9b837aec76a18033a0e8a9579969170 100644
(file)
--- a/
src/timeq.c
+++ b/
src/timeq.c
@@
-1,4
+1,4
@@
-/* timeq.c - NeonServ v5.
5
+/* timeq.c - NeonServ v5.
6
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
@@
-17,6
+17,8
@@
#include "timeq.h"
#include "IOHandler.h"
#include "timeq.h"
#include "IOHandler.h"
+#include "tools.h"
+#include "log.h"
static struct timeq_entry *timeq_events;
#ifdef HAVE_THREADS
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)
{
struct timeq_entry *entry = malloc(sizeof(*entry));
if (!entry)
{
- p
error("malloc() failed"
);
+ p
rintf_log("main", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__
);
return NULL;
}
#ifdef HAVE_THREADS
return NULL;
}
#ifdef HAVE_THREADS