BIND 10 master, updated. 7ec750c09a3828d28362bc557816e24a6b2207cf [master] add std:: for memcpy. need this for sunstudio/solaris to build.
BIND 10 source code commits
bind10-changes at lists.isc.org
Mon Oct 29 20:45:46 UTC 2012
The branch, master has been updated
via 7ec750c09a3828d28362bc557816e24a6b2207cf (commit)
from 041dbf514a284b9c14f3a803dbaa8e4260b804f2 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 7ec750c09a3828d28362bc557816e24a6b2207cf
Author: JINMEI Tatuya <jinmei at isc.org>
Date: Mon Oct 29 20:45:06 2012 +0000
[master] add std:: for memcpy. need this for sunstudio/solaris to build.
-----------------------------------------------------------------------
Summary of changes:
src/lib/dhcp/alloc_engine.cc | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/dhcp/alloc_engine.cc b/src/lib/dhcp/alloc_engine.cc
index 5e8d90d..8ebefdc 100644
--- a/src/lib/dhcp/alloc_engine.cc
+++ b/src/lib/dhcp/alloc_engine.cc
@@ -14,6 +14,8 @@
#include <alloc_engine.h>
+#include <cstring>
+
using namespace isc::asiolink;
namespace isc {
@@ -31,11 +33,11 @@ AllocEngine::IterativeAllocator::increaseAddress(const isc::asiolink::IOAddress&
// First we copy the whole address as 16 bytes.
if (addr.getFamily()==AF_INET) {
// IPv4
- memcpy(packed, addr.getAddress().to_v4().to_bytes().data(), 4);
+ std::memcpy(packed, addr.getAddress().to_v4().to_bytes().data(), 4);
len = 4;
} else {
// IPv6
- memcpy(packed, addr.getAddress().to_v6().to_bytes().data(), 16);
+ std::memcpy(packed, addr.getAddress().to_v6().to_bytes().data(), 16);
len = 16;
}
More information about the bind10-changes
mailing list