fix argument order on replacing dns lists
authorFelix Fietkau <nbd@openwrt.org>
Sun, 20 May 2012 13:31:44 +0000 (15:31 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 20 May 2012 13:31:44 +0000 (15:31 +0200)
interface.c

index 331eaa197cca5d877b76c266187135c658df1a76..6cad26bee0f3a1baf2e34fedfc66b1e1a4a1fa4d 100644 (file)
@@ -593,7 +593,7 @@ interface_update_complete(struct interface *iface)
 }
 
 static void
-interface_replace_dns(struct interface_ip_settings *old, struct interface_ip_settings *new)
+interface_replace_dns(struct interface_ip_settings *new, struct interface_ip_settings *old)
 {
        vlist_simple_replace(&new->dns_servers, &old->dns_servers);
        vlist_simple_replace(&new->dns_search, &old->dns_search);