icmp: Fix type mismatches
Andrew Talbot
andrew.talbot at talbotville.com
Sat May 3 16:42:37 CDT 2008
Changelog:
icmp: Fix type mismatches.
diff --git a/dlls/icmp/icmp_main.c b/dlls/icmp/icmp_main.c
index 82243da..393e644 100644
--- a/dlls/icmp/icmp_main.c
+++ b/dlls/icmp/icmp_main.c
@@ -315,7 +315,7 @@ DWORD WINAPI IcmpSendEcho(
#endif
send_time = GetTickCount();
- res=sendto(icp->sid, reqbuf, reqsize, 0, (struct sockaddr*)&addr, sizeof(addr));
+ res=sendto(icp->sid, reqbuf, reqsize, 0, (__SOCKADDR_ARG)&addr, sizeof(addr));
HeapFree(GetProcessHeap (), 0, reqbuf);
if (res<0) {
if (errno==EMSGSIZE)
@@ -340,7 +340,7 @@ DWORD WINAPI IcmpSendEcho(
ip_header_len=0; /* because gcc was complaining */
while ((res=poll(&fdr,1,Timeout))>0) {
recv_time = GetTickCount();
- res=recvfrom(icp->sid, (char*)ip_header, maxlen, 0, (struct sockaddr*)&addr,&addrlen);
+ res=recvfrom(icp->sid, (char*)ip_header, maxlen, 0, (__SOCKADDR_ARG)&addr, &addrlen);
TRACE("received %d bytes from %s\n",res, inet_ntoa(addr.sin_addr));
ier->Status=IP_REQ_TIMED_OUT;
More information about the wine-patches
mailing list