ubus: constify name argument to mdns_add_records
authorFelix Fietkau <nbd@openwrt.org>
Tue, 3 Jun 2014 21:45:04 +0000 (23:45 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 3 Jun 2014 21:45:04 +0000 (23:45 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
ubus.c

diff --git a/ubus.c b/ubus.c
index c474bb52dc3c83bf4e6eac3251092692ba052608..dd590afb804fe83a529709b3a4cb40b9c7a17712 100644 (file)
--- a/ubus.c
+++ b/ubus.c
@@ -44,7 +44,7 @@ mdns_scan(struct ubus_context *ctx, struct ubus_object *obj,
 }
 
 static void
-mdns_add_records(char *name)
+mdns_add_records(const char *name)
 {
        struct cache_record *r, *q = avl_find_element(&records, name, r, avl);
        char *txt;