summaryrefslogtreecommitdiff
path: root/package/mountd
diff options
context:
space:
mode:
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>2010-10-16 13:57:55 +0000
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>2010-10-16 13:57:55 +0000
commit6239db34b1161453f6e22c69555a00eca810e98d (patch)
treeff01947d71db175e90b0d201fbaec29004df19a9 /package/mountd
parent8083a4380b0832bba5502e0ff05f112367ee7edc (diff)
downloadmtk-20170518-6239db34b1161453f6e22c69555a00eca810e98d.zip
mtk-20170518-6239db34b1161453f6e22c69555a00eca810e98d.tar.gz
mtk-20170518-6239db34b1161453f6e22c69555a00eca810e98d.tar.bz2
mountd: Rename uci_add_history to uci_add_delta (#8084)
SVN-Revision: 23474
Diffstat (limited to 'package/mountd')
-rw-r--r--package/mountd/Makefile2
-rw-r--r--package/mountd/patches/010-uci_rename_history_to_delta.patch27
2 files changed, 28 insertions, 1 deletions
diff --git a/package/mountd/Makefile b/package/mountd/Makefile
index 8cecc15..f7a6824 100644
--- a/package/mountd/Makefile
+++ b/package/mountd/Makefile
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=mountd
PKG_VERSION:=0.1
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
diff --git a/package/mountd/patches/010-uci_rename_history_to_delta.patch b/package/mountd/patches/010-uci_rename_history_to_delta.patch
new file mode 100644
index 0000000..65b2f84
--- /dev/null
+++ b/package/mountd/patches/010-uci_rename_history_to_delta.patch
@@ -0,0 +1,27 @@
+---
+ lib/uci.c | 2 +-
+ lib/ucix.c | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+--- a/lib/uci.c
++++ b/lib/uci.c
+@@ -28,7 +28,7 @@ struct uci_package *p = NULL;
+ struct uci_context* uci_init(char *config_file)
+ {
+ struct uci_context *ctx = uci_alloc_context();
+- uci_add_history_path(ctx, "/var/state");
++ uci_add_delta_path(ctx, "/var/state");
+ if(uci_load(ctx, config_file, &p) != UCI_OK)
+ {
+ log_printf("/etc/config/%s is missing or corrupt\n", config_file);
+--- a/lib/ucix.c
++++ b/lib/ucix.c
+@@ -18,7 +18,7 @@ static inline int ucix_get_ptr(struct uc
+ struct uci_context* ucix_init(const char *config_file)
+ {
+ struct uci_context *ctx = uci_alloc_context();
+- uci_add_history_path(ctx, "/var/state");
++ uci_add_delta_path(ctx, "/var/state");
+ if(uci_load(ctx, config_file, NULL) != UCI_OK)
+ {
+ printf("%s/%s is missing or corrupt\n", ctx->savedir, config_file);