fixed last commits
[NeonServV5.git] / tools.c
diff --git a/tools.c b/tools.c
index 3ae71d978bd9b145f0e3c1e9588d11e3d4bb351f..274187229bc3584fde6e50e925841a475907ebd0 100644 (file)
--- a/tools.c
+++ b/tools.c
@@ -1,6 +1,8 @@
 #include "tools.h"
 #include "UserNode.h"
+#include "ChanNode.h"
 #include "lang.h"
+#include "ClientSocket.h"
 
 static const struct default_language_entry msgtab[] = {
     {"TIME_MASK_2_ITEMS", "%s and %s"},
@@ -307,7 +309,7 @@ struct ModeBuffer* initModeBuffer(struct ClientSocket *client, struct ChanNode *
     struct ModeBuffer *modeBuf = malloc(sizeof(*modeBuf));
     if(!modeBuf) {
         perror("malloc() failed");
-        return;
+        return NULL;
     }
     modeBuf->client = client;
     modeBuf->chan = chan;