summaryrefslogtreecommitdiff
path: root/sbin/dhclient/inet.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-03-02 18:49:22 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-03-02 18:49:22 +0000
commit42b6ae9827ff5d6ef0469411de4ee6d70a4b7420 (patch)
tree8d6673dea018ecc77ca40a3ff3667ea17d2d9c36 /sbin/dhclient/inet.c
parent055ee0c405fb980cb81834b9b3810099c7e98f9e (diff)
more pruning; henning ok
Diffstat (limited to 'sbin/dhclient/inet.c')
-rw-r--r--sbin/dhclient/inet.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/dhclient/inet.c b/sbin/dhclient/inet.c
index 20494bd500a..42466bc6f32 100644
--- a/sbin/dhclient/inet.c
+++ b/sbin/dhclient/inet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inet.c,v 1.4 2004/02/07 13:26:35 henning Exp $ */
+/* $OpenBSD: inet.c,v 1.5 2004/03/02 18:49:21 deraadt Exp $ */
/*
* Subroutines to manipulate internet addresses in a safely portable
@@ -50,8 +50,8 @@
struct iaddr
subnet_number(struct iaddr addr, struct iaddr mask)
{
- int i;
struct iaddr rv;
+ int i;
rv.len = 0;
@@ -75,8 +75,8 @@ ip_addr(struct iaddr subnet, struct iaddr mask, u_int32_t host_address)
{
int i, j, k;
u_int32_t swaddr;
- struct iaddr rv;
unsigned char habuf[sizeof(swaddr)];
+ struct iaddr rv;
swaddr = htonl(host_address);
memcpy(habuf, &swaddr, sizeof(swaddr));