#include "lang.h"
#include "ClientSocket.h"
#include "IPNode.h"
+#include "log.h"
static const struct default_language_entry msgtab[] = {
{"TIME_MASK_2_ITEMS", "%s and %s"}, /* {ARGS: "2 days", "1 hour"} */
struct ModeBuffer* initModeBuffer(struct ClientSocket *client, struct ChanNode *chan) {
struct ModeBuffer *modeBuf = malloc(sizeof(*modeBuf));
if(!modeBuf) {
- perror("malloc() failed");
+ printf_log("main", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__);
return NULL;
}
modeBuf->client = client;