summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2014-05-29 12:57:35 +0200
committerJo-Philipp Wich <jow@openwrt.org>2014-05-29 13:04:21 +0200
commit7c789622a6cc7e295db3f452a2b1e7b955f427aa (patch)
tree02d8c7e7c95b11f927d5078e9e5a90dbaa79cfd5
parent4cc6a9deb8eb65c8771ed56ae9fc950f3efa99c6 (diff)
downloadrpcd-7c789622a6cc7e295db3f452a2b1e7b955f427aa.tar.gz
uci: rework variable usage
Signed-off-by: Luka Perkov <luka@openwrt.org>
-rw-r--r--uci.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/uci.c b/uci.c
index ef255a8..acbbfd8 100644
--- a/uci.c
+++ b/uci.c
@@ -1236,11 +1236,8 @@ static int
rpc_uci_apply_config(struct ubus_context *ctx, char *config)
{
struct uci_package *p = NULL;
- struct uci_ptr ptr = { 0 };
-
- ptr.package = config;
- if (!uci_load(cursor, ptr.package, &p)) {
+ if (!uci_load(cursor, config, &p)) {
uci_commit(cursor, &p, false);
uci_unload(cursor, p);
}