summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2004-03-02 12:43:09 +0000
committerhenning <henning@openbsd.org>2004-03-02 12:43:09 +0000
commit76b012313d82ffd00a8051615212feca1c322f66 (patch)
tree4e48d3fb0fb5bd78b0ec835215c4848f74cb8db9
parentsince we're dealing with one interface and not quite a few ones we can give (diff)
downloadwireguard-openbsd-76b012313d82ffd00a8051615212feca1c322f66.tar.xz
wireguard-openbsd-76b012313d82ffd00a8051615212feca1c322f66.zip
mixing memcpy and bcopy in the same function is highly confusing
-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) {