diff options
author | Irfan Sheriff <isheriff@google.com> | 2012-12-06 12:08:05 -0800 |
---|---|---|
committer | Irfan Sheriff <isheriff@google.com> | 2012-12-06 12:08:05 -0800 |
commit | 35c625194bd1d2efb1a8230fd63c7febfbd98f31 (patch) | |
tree | d30b55c2606bcec2d5988f9989c01dd411416578 /libnetutils/dhcp_utils.c | |
parent | 59836bd243bd5fc035b224d3e10abac41ee0ca85 (diff) | |
download | system_core-35c625194bd1d2efb1a8230fd63c7febfbd98f31.zip system_core-35c625194bd1d2efb1a8230fd63c7febfbd98f31.tar.gz system_core-35c625194bd1d2efb1a8230fd63c7febfbd98f31.tar.bz2 |
Remove dead code
Remove unnecessary DHCP properties
Change-Id: I27b5d0a2d8fd67c911d04bb2d18dc1b3f10e7c2a
Diffstat (limited to 'libnetutils/dhcp_utils.c')
-rw-r--r-- | libnetutils/dhcp_utils.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/libnetutils/dhcp_utils.c b/libnetutils/dhcp_utils.c index 541d3fb..a220967 100644 --- a/libnetutils/dhcp_utils.c +++ b/libnetutils/dhcp_utils.c @@ -242,13 +242,6 @@ int dhcp_do_request(const char *interface, dns1, dns2, server, lease, vendorInfo, domain) == -1) { return -1; } - - /* copy dns data to system properties - TODO - remove this after we have async - * notification of renewal's */ - snprintf(dns_prop_name, sizeof(dns_prop_name), "net.%s.dns1", interface); - property_set(dns_prop_name, *dns1 ? ipaddr_to_string(*dns1) : ""); - snprintf(dns_prop_name, sizeof(dns_prop_name), "net.%s.dns2", interface); - property_set(dns_prop_name, *dns2 ? ipaddr_to_string(*dns2) : ""); return 0; } else { snprintf(errmsg, sizeof(errmsg), "DHCP result was %s", prop_value); |