diff options
author | Erik Kline <ek@google.com> | 2015-02-18 00:24:56 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-02-18 00:24:56 +0000 |
commit | c856def80a1f47d42d173bd31f5d454344c2f024 (patch) | |
tree | 8ed2d9c8f4129158128729988495f0d3a235e2bf | |
parent | 57cf78d09a98b4a2952d7542528570bd40f31347 (diff) | |
parent | 0b93c1c5312c8907e0bfc022845886d9fe81387e (diff) | |
download | android_external_dhcpcd-c856def80a1f47d42d173bd31f5d454344c2f024.tar.gz android_external_dhcpcd-c856def80a1f47d42d173bd31f5d454344c2f024.tar.bz2 android_external_dhcpcd-c856def80a1f47d42d173bd31f5d454344c2f024.zip |
am 0b93c1c5: am 1990a910: am 23f28ff2: am 3b32f45a: am df8360e1: am 8c596b79: am d8db5112: Remove set but not used variable
* commit '0b93c1c5312c8907e0bfc022845886d9fe81387e':
Remove set but not used variable
-rw-r--r-- | dhcp.c | 2 | ||||
-rw-r--r-- | dhcpcd_test.cpp | 6 |
2 files changed, 3 insertions, 5 deletions
@@ -1382,7 +1382,6 @@ ssize_t configure_env(char **env, const char *prefix, const struct dhcp_message *dhcp, const struct if_options *ifo) { - unsigned int i; const uint8_t *p; int pl; struct in_addr addr; @@ -1425,7 +1424,6 @@ configure_env(char **env, const char *prefix, const struct dhcp_message *dhcp, net.s_addr = get_netmask(addr.s_addr); setvar(&ep, prefix, "subnet_mask", inet_ntoa(net)); } - i = inet_ntocidr(net); snprintf(cidr, sizeof(cidr), "%d", inet_ntocidr(net)); setvar(&ep, prefix, "subnet_cidr", cidr); if (get_option_addr(&brd, dhcp, DHO_BROADCAST) == -1) { diff --git a/dhcpcd_test.cpp b/dhcpcd_test.cpp index 1fa829f..a254d4d 100644 --- a/dhcpcd_test.cpp +++ b/dhcpcd_test.cpp @@ -97,9 +97,9 @@ class DhcpcdGetOptionTest : public ::testing::Test { } struct dhcp_message dhcpmsgs[2]; - size_t type_index; - size_t length_index; - size_t value_index; + volatile size_t type_index; + volatile size_t length_index; + volatile size_t value_index; }; TEST_F(DhcpcdGetOptionTest, OptionNotPresent) { |