diff options
author | Erik Kline <ek@google.com> | 2015-02-17 18:39:59 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-02-17 18:39:59 +0000 |
commit | 0b93c1c5312c8907e0bfc022845886d9fe81387e (patch) | |
tree | 8ed2d9c8f4129158128729988495f0d3a235e2bf | |
parent | 3ef3c85abec64ea7d7a357f1a06c2d89d83ccace (diff) | |
parent | 1990a91003f9a9e549bc7fd6834a2e96b33c74f8 (diff) | |
download | dhcpcd-0b93c1c5312c8907e0bfc022845886d9fe81387e.tar.gz |
am 1990a910: am 23f28ff2: am 3b32f45a: am df8360e1: am 8c596b79: am d8db5112: Remove set but not used variable
* commit '1990a91003f9a9e549bc7fd6834a2e96b33c74f8':
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) { |