|
@@ -142,7 +142,7 @@ send_fd(const int sock, const int fd) {
|
|
if (msghdr.msg_control == NULL) {
|
|
if (msghdr.msg_control == NULL) {
|
|
return (FD_OTHER_ERROR);
|
|
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);
|
|
struct cmsghdr* cmsg = CMSG_FIRSTHDR(&msghdr);
|
|
cmsg->cmsg_len = cmsg_len(sizeof(int));
|
|
cmsg->cmsg_len = cmsg_len(sizeof(int));
|