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 c474bb5..dd590af 100644 (file)
--- a/ubus.c
+++ b/ubus.c
@@ -44,7 +44,7 @@ mdns_scan(struct ubus_context *ctx, struct ubus_object *obj,
 }
 
 static void
 }
 
 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;
 {
        struct cache_record *r, *q = avl_find_element(&records, name, r, avl);
        char *txt;