Module Name: src
Committed By: mbalmer
Date: Thu Jun 25 22:26:54 UTC 2009
Modified Files:
src/usr.sbin/wake: wake.c
Log Message:
Switch from bcopy to memcpy. Requested by and ok christos.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.sbin/wake/wake.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/wake/wake.c
diff -u src/usr.sbin/wake/wake.c:1.2 src/usr.sbin/wake/wake.c:1.3
--- src/usr.sbin/wake/wake.c:1.2 Thu Jun 25 18:50:46 2009
+++ src/usr.sbin/wake/wake.c Thu Jun 25 22:26:54 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: wake.c,v 1.2 2009/06/25 18:50:46 mbalmer Exp $ */
+/* $NetBSD: wake.c,v 1.3 2009/06/25 22:26:54 mbalmer Exp $ */
/*
* Copyright (C) 2006, 2007, 2008, 2009 Marc Balmer <[email protected]>
@@ -171,7 +171,7 @@
(void)memset(pkt.data, 0xff, SYNC_LEN);
for (p = pkt.data + SYNC_LEN, i = 0; i < DESTADDR_COUNT;
p += ETHER_ADDR_LEN, i++)
- bcopy(addr->ether_addr_octet, p, ETHER_ADDR_LEN);
+ memcpy(p, addr->ether_addr_octet, ETHER_ADDR_LEN);
p = (u_char *)&pkt;
len = sizeof(pkt);
bw = 0;