summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-03-02 12:43:10 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-03-02 12:43:10 +0000
commit3d6d923973022ed0a27aedab9f4be6a9a5f217ed (patch)
tree241d5e4f3a0bddab731cefac44431204af0125a1 /sbin
parent6f65c96f49898b7b64e58c7f343992f97c77db75 (diff)
mixing memcpy and bcopy in the same function is highly confusing
Diffstat (limited to 'sbin')
-rw-r--r--sbin/dhclient/dispatch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/dispatch.c b/sbin/dhclient/dispatch.c
index c321b0665ee..c342f61eb3a 100644
--- a/sbin/dhclient/dispatch.c
+++ b/sbin/dhclient/dispatch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dispatch.c,v 1.17 2004/03/02 12:40:31 henning Exp $ */
+/* $OpenBSD: dispatch.c,v 1.18 2004/03/02 12:43:09 henning Exp $ */
/*
* Copyright 2004 Henning Brauer <henning@openbsd.org>
@@ -100,7 +100,7 @@ discover_interfaces(struct interface_info *iface)
} else if (ifa->ifa_addr->sa_family == AF_INET) {
struct iaddr addr;
- bcopy(ifa->ifa_addr, &foo, sizeof(foo));
+ memcpy(&foo, ifa->ifa_addr, sizeof(foo));
if (foo.sin_addr.s_addr == htonl(INADDR_LOOPBACK))
continue;
if (!iface->ifp) {