summaryrefslogtreecommitdiff
path: root/usr.sbin/dhcpd/dispatch.c
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2013-10-18 15:19:41 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2013-10-18 15:19:41 +0000
commit012b489a7c882796cd8e5eabe82e2ea51ccceeca (patch)
treee8b089d9b05236c3dfb2d829a5a760066044b9e5 /usr.sbin/dhcpd/dispatch.c
parent6d98ff92ff0fa31ab8b7110d36fbb0ea16fcbbf3 (diff)
Scattering a few bcopy()'s around source using mostly memcpy() is just
asking for confusion. Replace bcopy()'s with memcpy()'s.
Diffstat (limited to 'usr.sbin/dhcpd/dispatch.c')
-rw-r--r--usr.sbin/dhcpd/dispatch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/dhcpd/dispatch.c b/usr.sbin/dhcpd/dispatch.c
index debcae79d1c..0e78bc96200 100644
--- a/usr.sbin/dhcpd/dispatch.c
+++ b/usr.sbin/dhcpd/dispatch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dispatch.c,v 1.31 2013/05/16 19:24:12 gerhard Exp $ */
+/* $OpenBSD: dispatch.c,v 1.32 2013/10/18 15:19:39 krw Exp $ */
/*
* Copyright (c) 1995, 1996, 1997, 1998, 1999
@@ -147,7 +147,7 @@ discover_interfaces(int *rdomain)
struct iaddr addr;
/* Get a pointer to the address... */
- bcopy(ifa->ifa_addr, &foo, sizeof(foo));
+ memcpy(&foo, ifa->ifa_addr, sizeof(foo));
/* We don't want the loopback interface. */
if (foo.sin_addr.s_addr == htonl (INADDR_LOOPBACK))