Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
Remove set but not used variable
Browse files Browse the repository at this point in the history
Bug: 19245503

Change-Id: I57002952eadf4d5b7636e78fc0846c915cceb5dd
  • Loading branch information
Erik Kline committed Feb 10, 2015
1 parent ab76087 commit d8db511
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions dhcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,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;
Expand Down Expand Up @@ -1349,7 +1348,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) {
Expand Down
6 changes: 3 additions & 3 deletions dhcpcd_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d8db511

Please sign in to comment.