projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'origin/development'
[NeonServV5.git]
/
src
/
IRCEvents.c
diff --git
a/src/IRCEvents.c
b/src/IRCEvents.c
index 972850249a9f2d71970bbe70922d553c9936b6c6..2eea34d8ecc1067bddf693e2a721b6a748abeee7 100644
(file)
--- a/
src/IRCEvents.c
+++ b/
src/IRCEvents.c
@@
-21,6
+21,7
@@
#include "ChanUser.h"
#include "ClientSocket.h"
#include "mysqlConn.h"
#include "ChanUser.h"
#include "ClientSocket.h"
#include "mysqlConn.h"
+#include "log.h"
struct binding {
void *func;
struct binding {
void *func;
@@
-105,7
+106,7
@@
int bind_##NAME(FUNCTYPE *func, int module_id) { \
if(!is_bound(TYPE, func)) { \
struct binding *cbind = malloc(sizeof(*cbind)); \
if (!cbind) { \
if(!is_bound(TYPE, func)) { \
struct binding *cbind = malloc(sizeof(*cbind)); \
if (!cbind) { \
- p
error("malloc() failed"
); \
+ p
rintf_log("main", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__
); \
return 0; \
} \
cbind->func = func; \
return 0; \
} \
cbind->func = func; \