From 51f2ea3271762cebf1e3b54a6e87297f2cab0194 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 10 Jun 2013 13:19:45 +0200 Subject: [PATCH] util: fix compile error Signed-off-by: Felix Fietkau --- util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util.c b/util.c index 7cad0d1..812a3a3 100644 --- a/util.c +++ b/util.c @@ -27,6 +27,7 @@ #include #include #include +#include #include "uci.h" #include "uci_internal.h" @@ -189,7 +190,7 @@ __private FILE *uci_open_stream(struct uci_context *ctx, const char *filename, i if (create) { flags |= O_CREAT; - name = basename(filename); + name = basename((char *) filename); if ((asprintf(&filename2, "%s/%s", ctx->confdir, name) < 0) || !filename2) { UCI_THROW(ctx, UCI_ERR_MEM); } else { -- 2.30.2