remove some duplication
authorFelix Fietkau <nbd@openwrt.org>
Mon, 7 Feb 2011 02:01:36 +0000 (03:01 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 7 Feb 2011 02:01:36 +0000 (03:01 +0100)
ubusd_proto.c

index 0654e99a60e9629c401bf2053c9a8bcf446adc27..ff2725be1e9d3e3cfcfd008214ae249199ea0bac 100644 (file)
@@ -41,7 +41,7 @@ static struct ubus_msg_buf *ubus_reply_from_blob(struct ubus_msg_buf *ub, bool s
 {
        struct ubus_msg_buf *new;
 
-       new = ubus_msg_new(b.head, blob_raw_len(b.head), shared);
+       new = ubus_msg_from_blob(shared);
        if (!new)
                return NULL;