diff options
author | Luka Perkov <luka@openwrt.org> | 2014-05-29 12:57:35 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2014-05-29 13:04:21 +0200 |
commit | 7c789622a6cc7e295db3f452a2b1e7b955f427aa (patch) | |
tree | 02d8c7e7c95b11f927d5078e9e5a90dbaa79cfd5 | |
parent | 4cc6a9deb8eb65c8771ed56ae9fc950f3efa99c6 (diff) | |
download | rpcd-7c789622a6cc7e295db3f452a2b1e7b955f427aa.tar.gz |
uci: rework variable usage
Signed-off-by: Luka Perkov <luka@openwrt.org>
-rw-r--r-- | uci.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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); } |