fix interface_add_dns_search_list
authorFelix Fietkau <nbd@openwrt.org>
Wed, 19 Oct 2011 19:14:39 +0000 (21:14 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 19 Oct 2011 19:14:39 +0000 (21:14 +0200)
interface-ip.c

index 571bb3253f52621d03544464333614f49ff8b8ab..6b25f75e5a7fc0308f54d5035c22ae366eee160e 100644 (file)
@@ -215,7 +215,7 @@ interface_add_dns_server_list(struct interface_ip_settings *ip, struct blob_attr
        }
 }
 
-void
+static void
 interface_add_dns_search_domain(struct interface_ip_settings *ip, const char *str)
 {
        struct dns_search_domain *s;
@@ -243,7 +243,7 @@ interface_add_dns_search_list(struct interface_ip_settings *ip, struct blob_attr
                if (!blobmsg_check_attr(cur, NULL))
                        continue;
 
-               interface_add_dns_server(ip, blobmsg_data(cur));
+               interface_add_dns_search_domain(ip, blobmsg_data(cur));
        }
 }