]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[master] add std:: for memset(). sunstudio requires this with <cstring>
authorJINMEI Tatuya <jinmei@isc.org>
Mon, 8 Oct 2012 16:41:33 +0000 (16:41 +0000)
committerJINMEI Tatuya <jinmei@isc.org>
Thu, 11 Oct 2012 17:04:27 +0000 (10:04 -0700)
src/lib/util/io/fd_share.cc

index 04a3e546fa838e0b4d2b82ca87d39def229818e4..866644131a0821cd8ee26031cb7927eb6cd976a9 100644 (file)
@@ -142,7 +142,7 @@ send_fd(const int sock, const int fd) {
     if (msghdr.msg_control == NULL) {
         return (FD_OTHER_ERROR);
     }
-    memset(msghdr.msg_control, 0, msghdr.msg_controllen);
+    std::memset(msghdr.msg_control, 0, msghdr.msg_controllen);
 
     struct cmsghdr* cmsg = CMSG_FIRSTHDR(&msghdr);
     cmsg->cmsg_len = cmsg_len(sizeof(int));