summaryrefslogtreecommitdiff
path: root/gdhcp
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2011-05-27 10:31:06 -0700
committerMarcel Holtmann <marcel@holtmann.org>2011-05-27 10:31:06 -0700
commitfadbb777ec532970a387de42769767b04620d455 (patch)
tree1c16bb2127365441c84f69736afb645df582eb1a /gdhcp
parent2c0adb475a10db81f76266e8bd1a860b8dc0cc3d (diff)
downloadconnman-fadbb777ec532970a387de42769767b04620d455.tar.gz
connman-fadbb777ec532970a387de42769767b04620d455.tar.bz2
connman-fadbb777ec532970a387de42769767b04620d455.zip
gdhcp: Remove unused variable
Diffstat (limited to 'gdhcp')
-rw-r--r--gdhcp/client.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdhcp/client.c b/gdhcp/client.c
index 84411046..4a873bf9 100644
--- a/gdhcp/client.c
+++ b/gdhcp/client.c
@@ -202,7 +202,6 @@ static int send_discover(GDHCPClient *dhcp_client, uint32_t requested)
static int send_select(GDHCPClient *dhcp_client)
{
struct dhcp_packet packet;
- struct in_addr addr;
debug(dhcp_client, "sending DHCP select request");
@@ -218,8 +217,6 @@ static int send_select(GDHCPClient *dhcp_client)
add_send_options(dhcp_client, &packet);
- addr.s_addr = dhcp_client->requested_ip;
-
return dhcp_send_raw_packet(&packet, INADDR_ANY, CLIENT_PORT,
INADDR_BROADCAST, SERVER_PORT,
MAC_BCAST_ADDR, dhcp_client->ifindex);