summaryrefslogtreecommitdiff
path: root/sbin/dhclient
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2013-02-15 15:00:18 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2013-02-15 15:00:18 +0000
commitef4aa5ce4e05fc20ff73c35a070daf749e6a6b1a (patch)
treec8c8705f59ac1a708e09b71e41de52975612c31d /sbin/dhclient
parent6aa7a60544899852e8408e00c411e04c0b55209c (diff)
Make code a tad less obscure by using sizeof() actual variable being
zeroed, rather than some other variable that may be the same type.
Diffstat (limited to 'sbin/dhclient')
-rw-r--r--sbin/dhclient/dhclient.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c
index 50096cc2766..d646fa1531f 100644
--- a/sbin/dhclient/dhclient.c
+++ b/sbin/dhclient/dhclient.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dhclient.c,v 1.231 2013/02/15 14:54:04 krw Exp $ */
+/* $OpenBSD: dhclient.c,v 1.232 2013/02/15 15:00:17 krw Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -1374,10 +1374,10 @@ make_discover(struct client_lease *lease)
packet->secs = 0; /* filled in by send_discover. */
packet->flags = 0;
- memset(&packet->ciaddr, 0, sizeof(client->packet.ciaddr));
- memset(&packet->yiaddr, 0, sizeof(client->packet.yiaddr));
- memset(&packet->siaddr, 0, sizeof(client->packet.siaddr));
- memset(&packet->giaddr, 0, sizeof(client->packet.giaddr));
+ memset(&packet->ciaddr, 0, sizeof(packet->ciaddr));
+ memset(&packet->yiaddr, 0, sizeof(packet->yiaddr));
+ memset(&packet->siaddr, 0, sizeof(packet->siaddr));
+ memset(&packet->giaddr, 0, sizeof(packet->giaddr));
memcpy(&packet->chaddr, ifi->hw_address.haddr, ifi->hw_address.hlen);
}