make ubus_parse_msg static
authorFelix Fietkau <nbd@openwrt.org>
Mon, 7 Feb 2011 01:38:57 +0000 (02:38 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 7 Feb 2011 01:38:57 +0000 (02:38 +0100)
ubusd.h
ubusd_proto.c

diff --git a/ubusd.h b/ubusd.h
index e3a8e49..87cc831 100644 (file)
--- 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);
 
index 7d6e01a..1a67501 100644 (file)
@@ -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;