projects
/
project
/
ubus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lua: ubus_lua_do_subscribe: fix copy&paste error
[project/ubus.git]
/
lua
/
ubus.c
diff --git
a/lua/ubus.c
b/lua/ubus.c
index fb50418d27b0e3c3ace535050a4f107b984c6d64..86dcc5007b3a2776a611bf6c0a9255b7c5d0b946 100644
(file)
--- a/
lua/ubus.c
+++ b/
lua/ubus.c
@@
-840,8
+840,8
@@
ubus_lua_do_subscribe( struct ubus_context *ctx, lua_State *L, const char* targe
if( idxremove ){
lua_getglobal(L, "__ubus_cb_subscribe");
- lua_pushvalue(L, idx
notify
);
- sub->r
notify
= luaL_ref(L, -2);
+ lua_pushvalue(L, idx
remove
);
+ sub->r
remove
= luaL_ref(L, -2);
lua_pop(L, 1);
sub->s.remove_cb = ubus_sub_remove_handler;
}