summaryrefslogtreecommitdiffstats
path: root/ll-database-binding/src/ll-database-binding.c
diff options
context:
space:
mode:
Diffstat (limited to 'll-database-binding/src/ll-database-binding.c')
-rw-r--r--ll-database-binding/src/ll-database-binding.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/ll-database-binding/src/ll-database-binding.c b/ll-database-binding/src/ll-database-binding.c
index 14b8b20..bbbba80 100644
--- a/ll-database-binding/src/ll-database-binding.c
+++ b/ll-database-binding/src/ll-database-binding.c
@@ -23,7 +23,7 @@
#include <pwd.h>
#include <stdio.h>
#include <string.h>
-#include <linux/limits.h>
+#include <limits.h>
#include <json-c/json.h>
#include <db.h>
@@ -31,10 +31,6 @@
#define AFB_BINDING_VERSION 2
#include <afb/afb-binding.h>
-#ifndef MAX_PATH
-#define MAX_PATH 1024
-#endif
-
#define DBFILE "ll-database-binding.db"
#if !defined(TO_STRING_FLAGS)
@@ -92,7 +88,7 @@ static int get_database_path(char *buffer, size_t size)
*/
static int ll_database_binding_init()
{
- char path[MAX_PATH];
+ char path[PATH_MAX];
int ret;
ret = get_database_path(path, sizeof path);