diff options
author | Erik Kline <ek@google.com> | 2015-02-13 20:45:35 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-02-13 20:45:35 +0000 |
commit | df8360e1f5c2a240fb0279479e224685b728db14 (patch) | |
tree | 43942648092d9da7f0357969183b817e992cd3cd | |
parent | 18ccfeaf48996bc825b4a1b500aa64db7cee3177 (diff) | |
parent | 8c596b7916e9db949e56e9c544fb41c59380d1c3 (diff) | |
download | android_external_dhcpcd-df8360e1f5c2a240fb0279479e224685b728db14.tar.gz android_external_dhcpcd-df8360e1f5c2a240fb0279479e224685b728db14.tar.bz2 android_external_dhcpcd-df8360e1f5c2a240fb0279479e224685b728db14.zip |
am 8c596b79: am d8db5112: Remove set but not used variable
* commit '8c596b7916e9db949e56e9c544fb41c59380d1c3':
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) { |