diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-06-10 13:19:45 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-06-10 14:11:46 +0200 |
commit | 51f2ea3271762cebf1e3b54a6e87297f2cab0194 (patch) | |
tree | 02982f3c9abeff327d1e8f1f8c97c63c878f9e57 | |
parent | 9ef6964362f917ba035020d439d05b36abfe5bb9 (diff) | |
download | uci-51f2ea3271762cebf1e3b54a6e87297f2cab0194.tar.gz |
util: fix compile error
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r-- | util.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -27,6 +27,7 @@ #include <errno.h> #include <stdlib.h> #include <string.h> +#include <libgen.h> #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 { |