From: Niklas Hofmann Date: Thu, 20 Nov 2014 23:22:49 +0000 (+0100) Subject: avoid implicit conversion from void* to char* X-Git-Url: http://git.meshlink.io/?p=catta;a=commitdiff_plain;h=3b824f72f7adffeab885278ac66fbe68c65c3c79 avoid implicit conversion from void* to char* --- diff --git a/src/compat/windows/wincompat.h b/src/compat/windows/wincompat.h index f611e33..0bb36d5 100644 --- a/src/compat/windows/wincompat.h +++ b/src/compat/windows/wincompat.h @@ -56,14 +56,14 @@ struct msghdr { static inline struct cmsghdr *CMSG_FIRSTHDR(struct msghdr *m) { WSAMSG wm; wm.Control.len = m->msg_controllen; - wm.Control.buf = m->msg_control; + wm.Control.buf = reinterpret_cast(m->msg_control); return WSA_CMSG_FIRSTHDR(&wm); } static inline struct cmsghdr *CMSG_NXTHDR(struct msghdr *m, struct cmsghdr *c) { WSAMSG wm; wm.Control.len = m->msg_controllen; - wm.Control.buf = m->msg_control; + wm.Control.buf = reinterpret_cast(m->msg_control); return WSA_CMSG_NXTHDR(&wm, c); }