projects
/
oweals
/
rpcd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cc6a9d
)
uci: rework variable usage
author
Luka Perkov
<luka@openwrt.org>
Thu, 29 May 2014 10:57:35 +0000
(12:57 +0200)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Thu, 29 May 2014 11:04:21 +0000
(13:04 +0200)
Signed-off-by: Luka Perkov <luka@openwrt.org>
uci.c
patch
|
blob
|
history
diff --git
a/uci.c
b/uci.c
index ef255a8e3a03e880f1afdf1a9cd4c7732aada93e..acbbfd808c6139f5e8b7a8768c53d6476dd8da27 100644
(file)
--- 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);
}