]> git.meshlink.io Git - catta/commitdiff
avoid implicit conversion from void* to char*
authorNiklas Hofmann <niklas.hofmann@everbase.net>
Thu, 20 Nov 2014 23:22:49 +0000 (00:22 +0100)
committerNiklas Hofmann <niklas.hofmann@everbase.net>
Thu, 20 Nov 2014 23:22:49 +0000 (00:22 +0100)
src/compat/windows/wincompat.h

index f611e33e581534346e81022dafb3f83759c87084..0bb36d5d0d24a96c658eeba080c813d8a01e04ad 100644 (file)
@@ -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<char*>(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<char*>(m->msg_control);
     return WSA_CMSG_NXTHDR(&wm, c);
 }