projects
/
project
/
ubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1643f72
)
make ubus_msg_ref static
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 7 Feb 2011 01:41:56 +0000
(
02:41
+0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 7 Feb 2011 01:41:56 +0000
(
02:41
+0100)
ubusd.c
patch
|
blob
|
history
ubusd.h
patch
|
blob
|
history
diff --git
a/ubusd.c
b/ubusd.c
index
a283f59
..
60c0404
100644
(file)
--- a/
ubusd.c
+++ b/
ubusd.c
@@
-26,7
+26,7
@@
static struct ubus_msg_buf *ubus_msg_unshare(struct ubus_msg_buf *ub)
return ub;
}
return ub;
}
-struct ubus_msg_buf *ubus_msg_ref(struct ubus_msg_buf *ub)
+st
atic st
ruct ubus_msg_buf *ubus_msg_ref(struct ubus_msg_buf *ub)
{
if (ub->refcount == ~0)
return ubus_msg_unshare(ub);
{
if (ub->refcount == ~0)
return ubus_msg_unshare(ub);
diff --git
a/ubusd.h
b/ubusd.h
index
4959a91
..
6d6e181
100644
(file)
--- a/
ubusd.h
+++ b/
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_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);
void ubus_msg_free(struct ubus_msg_buf *ub);
void ubusd_receive_message(struct ubus_client *cl, struct ubus_msg_buf *ub);