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 e3a8e49e123ca79ff1ef412dbc2b3d15c017c98e..87cc831383022aa605053df95e5e591c9aa28336 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);
 
 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);
 
 void ubusd_event_init(void);
 void ubusd_event_cleanup_object(struct ubus_object *obj);
 
index 7d6e01a95beadb7ff1bd55d7b99d4a70782bb0e4..1a675013842d7b047b043aa2ecc62e9aca42f851 100644 (file)
@@ -17,7 +17,7 @@ static const struct blob_attr_info ubus_policy[UBUS_ATTR_MAX] = {
        [UBUS_ATTR_STATUS] = { .type = BLOB_ATTR_INT32 },
 };
 
        [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;
 {
        blob_parse(msg, attrbuf, ubus_policy, UBUS_ATTR_MAX);
        return attrbuf;