luci-0.9: merge r6313

This commit is contained in:
Jo-Philipp Wich 2010-10-28 12:26:48 +00:00
parent 7a8d9beb88
commit 395df47437

View file

@ -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;