projects
/
oweals
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ef6964
)
util: fix compile error
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 10 Jun 2013 11:19:45 +0000
(13:19 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 10 Jun 2013 12:11:46 +0000
(14:11 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
util.c
patch
|
blob
|
history
diff --git
a/util.c
b/util.c
index 7cad0d1f408bd72d3b61d30107de817a4ecd5524..812a3a3a64b296ad335ff0919102eef4d2ece59f 100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-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 {