make ubus_start_request static
authorFelix Fietkau <nbd@openwrt.org>
Mon, 31 Jan 2011 17:27:23 +0000 (18:27 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 31 Jan 2011 17:27:23 +0000 (18:27 +0100)
libubus.c
libubus.h

index 97cdfc81528165d1ae271338c1476af55d59ab57..c1a1010cc0ba788b734ee74e2c0669f092914872 100644 (file)
--- a/libubus.c
+++ b/libubus.c
@@ -102,8 +102,8 @@ static int ubus_send_msg(struct ubus_context *ctx, uint32_t seq,
        return writev(ctx->sock.fd, iov, 2);
 }
 
-int ubus_start_request(struct ubus_context *ctx, struct ubus_request *req,
-                      struct blob_attr *msg, int cmd, uint32_t peer)
+static int ubus_start_request(struct ubus_context *ctx, struct ubus_request *req,
+                             struct blob_attr *msg, int cmd, uint32_t peer)
 {
        memset(req, 0, sizeof(*req));
 
index 290b5c3327abbc4419ba81cd83b4a72556f1e21d..49a147a931c3b270fc88a0ce5d252ccd2cdae18a 100644 (file)
--- a/libubus.h
+++ b/libubus.h
@@ -138,10 +138,6 @@ struct blob_attr **ubus_parse_msg(struct blob_attr *msg);
 
 /* ----------- raw request handling ----------- */
 
-/* start a raw request */
-int ubus_start_request(struct ubus_context *ctx, struct ubus_request *req,
-                      struct blob_attr *msg, int cmd, uint32_t peer);
-
 /* wait for a request to complete and return its status */
 int ubus_complete_request(struct ubus_context *ctx, struct ubus_request *req);