projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d127fc
)
freifunk-watchdog: copy with API change in latest uci
author
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 16 Oct 2010 19:48:11 +0000
(19:48 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 16 Oct 2010 19:48:11 +0000
(19:48 +0000)
contrib/package/freifunk-watchdog/src/ucix.c
patch
|
blob
|
history
diff --git
a/contrib/package/freifunk-watchdog/src/ucix.c
b/contrib/package/freifunk-watchdog/src/ucix.c
index 634d9e16c14bcfac36eb4134e2dde02228dd859f..44de25903dd6f840aa0aa7a1d5eff58b7bfb1347 100644
(file)
--- a/
contrib/package/freifunk-watchdog/src/ucix.c
+++ b/
contrib/package/freifunk-watchdog/src/ucix.c
@@
-40,7
+40,11
@@
static inline int ucix_get_ptr(struct uci_context *ctx, const char *p, const cha
struct uci_context* ucix_init(const char *config_file)
{
struct uci_context *ctx = uci_alloc_context();
+#ifdef uci_to_delta
+ uci_add_delta_path(ctx, "/var/state");
+#else
uci_add_history_path(ctx, "/var/state");
+#endif
if(uci_load(ctx, config_file, NULL) != UCI_OK)
{
return NULL;