From c4c0a2256d959dec987ece74c05f77e5e418a84c Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 7 Feb 2011 02:38:57 +0100 Subject: [PATCH] make ubus_parse_msg static --- ubusd.h | 2 -- ubusd_proto.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ubusd.h b/ubusd.h index e3a8e49..87cc831 100644 --- a/ubusd.h +++ b/ubusd.h @@ -53,8 +53,6 @@ struct ubus_client *ubusd_get_client_by_id(uint32_t id); void ubusd_receive_message(struct ubus_client *cl, struct ubus_msg_buf *ub); bool ubusd_send_hello(struct ubus_client *cl); -struct blob_attr **ubus_parse_msg(struct blob_attr *msg); - void ubusd_event_init(void); void ubusd_event_cleanup_object(struct ubus_object *obj); diff --git a/ubusd_proto.c b/ubusd_proto.c index 7d6e01a..1a67501 100644 --- a/ubusd_proto.c +++ b/ubusd_proto.c @@ -17,7 +17,7 @@ static const struct blob_attr_info ubus_policy[UBUS_ATTR_MAX] = { [UBUS_ATTR_STATUS] = { .type = BLOB_ATTR_INT32 }, }; -struct blob_attr **ubus_parse_msg(struct blob_attr *msg) +static struct blob_attr **ubus_parse_msg(struct blob_attr *msg) { blob_parse(msg, attrbuf, ubus_policy, UBUS_ATTR_MAX); return attrbuf;