diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-10-16 19:48:11 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-10-16 19:48:11 +0000 |
commit | f01178a19a94abfd98442cec532fcd43e91009b0 (patch) | |
tree | 798a7105a02ce53479a9cfe4d6cf37c01ecad6e2 /contrib/package/freifunk-watchdog | |
parent | 8d127fc6c51563fdffb3cc9dabc89a9ecb924b03 (diff) |
freifunk-watchdog: copy with API change in latest uci
Diffstat (limited to 'contrib/package/freifunk-watchdog')
-rw-r--r-- | contrib/package/freifunk-watchdog/src/ucix.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/package/freifunk-watchdog/src/ucix.c b/contrib/package/freifunk-watchdog/src/ucix.c index 634d9e16c..44de25903 100644 --- 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; |