From 8c992a556b2e243fd6b41163a3ed1e650a47b60a Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 21 Apr 2015 01:01:26 +0200 Subject: [PATCH] make ubus_parse_msg() none static Signed-off-by: John Crispin --- ubusd.h | 1 + ubusd_proto.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ubusd.h b/ubusd.h index ee33e6b..393c798 100644 --- a/ubusd.h +++ b/ubusd.h @@ -61,6 +61,7 @@ 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); void ubus_msg_free(struct ubus_msg_buf *ub); +struct blob_attr **ubus_parse_msg(struct blob_attr *msg); struct ubus_client *ubusd_proto_new_client(int fd, uloop_fd_handler cb); void ubusd_proto_receive_message(struct ubus_client *cl, struct ubus_msg_buf *ub); diff --git a/ubusd_proto.c b/ubusd_proto.c index caede10..e80c400 100644 --- a/ubusd_proto.c +++ b/ubusd_proto.c @@ -34,7 +34,7 @@ static const struct blob_attr_info ubus_policy[UBUS_ATTR_MAX] = { [UBUS_ATTR_METHOD] = { .type = BLOB_ATTR_STRING }, }; -static struct blob_attr **ubus_parse_msg(struct blob_attr *msg) +struct blob_attr **ubus_parse_msg(struct blob_attr *msg) { blob_parse(msg, attrbuf, ubus_policy, UBUS_ATTR_MAX); return attrbuf; -- 2.11.0