projects
/
project
/
ubus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make ubusd_get_client_by_id static
[project/ubus.git]
/
ubusd.c
diff --git
a/ubusd.c
b/ubusd.c
index
14eb537
..
a283f59
100644
(file)
--- a/
ubusd.c
+++ b/
ubusd.c
@@
-12,7
+12,7
@@
#include "ubusd.h"
#include "ubusd.h"
-st
atic st
ruct avl_tree clients;
+struct avl_tree clients;
static struct ubus_msg_buf *ubus_msg_unshare(struct ubus_msg_buf *ub)
{
static struct ubus_msg_buf *ubus_msg_unshare(struct ubus_msg_buf *ub)
{
@@
-249,17
+249,6
@@
disconnect:
handle_client_disconnect(cl);
}
handle_client_disconnect(cl);
}
-struct ubus_client *ubusd_get_client_by_id(uint32_t id)
-{
- struct ubus_id *clid;
-
- clid = ubus_find_id(&clients, id);
- if (!clid)
- return NULL;
-
- return container_of(clid, struct ubus_client, id);
-}
-
static bool get_next_connection(int fd)
{
struct ubus_client *cl;
static bool get_next_connection(int fd)
{
struct ubus_client *cl;