make ubus_msg_ref static
This commit is contained in:
parent
1643f728e7
commit
faedeaaca8
2 changed files with 1 additions and 2 deletions
2
ubusd.c
2
ubusd.c
|
@ -26,7 +26,7 @@ static struct ubus_msg_buf *ubus_msg_unshare(struct ubus_msg_buf *ub)
|
|||
return ub;
|
||||
}
|
||||
|
||||
struct ubus_msg_buf *ubus_msg_ref(struct ubus_msg_buf *ub)
|
||||
static struct ubus_msg_buf *ubus_msg_ref(struct ubus_msg_buf *ub)
|
||||
{
|
||||
if (ub->refcount == ~0)
|
||||
return ubus_msg_unshare(ub);
|
||||
|
|
1
ubusd.h
1
ubusd.h
|
@ -46,7 +46,6 @@ struct ubus_path {
|
|||
|
||||
struct ubus_msg_buf *ubus_msg_new(void *data, int len, bool shared);
|
||||
void ubus_msg_send(struct ubus_client *cl, struct ubus_msg_buf *ub, bool free);
|
||||
struct ubus_msg_buf *ubus_msg_ref(struct ubus_msg_buf *ub);
|
||||
void ubus_msg_free(struct ubus_msg_buf *ub);
|
||||
|
||||
void ubusd_receive_message(struct ubus_client *cl, struct ubus_msg_buf *ub);
|
||||
|
|
Loading…
Add table
Reference in a new issue