projects
/
project
/
rpcd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
iwinfo: add 802.11ac hw mode
[project/rpcd.git]
/
uci.c
diff --git
a/uci.c
b/uci.c
index
ef255a8
..
acbbfd8
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;
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);
}
uci_commit(cursor, &p, false);
uci_unload(cursor, p);
}