From: Felix Fietkau Date: Mon, 7 Feb 2011 01:38:57 +0000 (+0100) Subject: make ubus_parse_msg static X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c4c0a2256d959dec987ece74c05f77e5e418a84c;p=oweals%2Fubus.git make ubus_parse_msg static --- 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;