#include <sys/types.h>
#include <unistd.h>
-#include <common/compat/errno.h>
-#include <common/common.h>
-#include <common/utils.h>
+#include <common/compat/errno.hpp>
+#include <common/common.hpp>
+#include <common/utils.hpp>
-#include "conf.h"
+#include "conf.hpp"
/*
* Returns the path with '/CONFIG_FILENAME' added to it;
#define NAME_MAX_SCANF_IS_A_BROKEN_API "254"
#endif
- session_name = (char *) zmalloc(NAME_MAX);
+ session_name = calloc<char>(NAME_MAX);
if (session_name == NULL) {
ret = -ENOMEM;
ERR("Out of memory");