summaryrefslogtreecommitdiff
path: root/ubusd.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-02-07 02:40:40 +0100
committerFelix Fietkau <nbd@openwrt.org>2011-02-07 02:40:40 +0100
commit1643f728e7c99362d1925d6085a376f18cf46b5e (patch)
treefe61847787db228ed67765f044fdabf47dac6cfb /ubusd.c
parentc4c0a2256d959dec987ece74c05f77e5e418a84c (diff)
downloadubus-1643f728e7c99362d1925d6085a376f18cf46b5e.tar.gz
make ubusd_get_client_by_id static
Diffstat (limited to 'ubusd.c')
-rw-r--r--ubusd.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/ubusd.c b/ubusd.c
index 14eb537..a283f59 100644
--- a/ubusd.c
+++ b/ubusd.c
@@ -12,7 +12,7 @@
#include "ubusd.h"
-static struct avl_tree clients;
+struct avl_tree clients;
static struct ubus_msg_buf *ubus_msg_unshare(struct ubus_msg_buf *ub)
{
@@ -249,17 +249,6 @@ disconnect:
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;