#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
-#include <errno.h>
+#include <common/compat/errno.h>
#include <common/common.h>
#include <common/utils.h>
int config_add_session_name(const char *path, const char *name)
{
int ret;
- char *attr = "session=";
+ const char *attr = "session=";
/* Max name len accepted plus attribute's len and the NULL byte. */
char session_name[NAME_MAX + strlen(attr) + 1];