Commit 66fd8c29 authored by Gerald Pfeifer's avatar Gerald Pfeifer Committed by Alexandre Julliard

Properly cast struct sockaddr_in* to struct sockaddr* where needed.

parent e5fb975a
......@@ -236,7 +236,7 @@ static BOOL NB_Lookup(LPCSTR host, struct sockaddr_in *addr)
if(len<=0)
goto err;
r = sendto(fd, buffer, len, 0, &sin, sizeof sin);
r = sendto(fd, buffer, len, 0, (struct sockaddr*)&sin, sizeof sin);
if(r<0)
{
FIXME("Error sending packet\n");
......@@ -257,7 +257,7 @@ static BOOL NB_Lookup(LPCSTR host, struct sockaddr_in *addr)
TRACE("Got response!\n");
fromsize = sizeof (fromaddr);
r = recvfrom(fd, buffer, sizeof buffer, 0, &fromaddr, &fromsize);
r = recvfrom(fd, buffer, sizeof buffer, 0, (struct sockaddr*)&fromaddr, &fromsize);
if(r<0)
goto err;
......@@ -1327,7 +1327,7 @@ connect:
unsigned char *x = (unsigned char *)&sin.sin_addr;
TRACE("Connecting to %d.%d.%d.%d ...\n", x[0],x[1],x[2],x[3]);
}
r = connect(fd, &sin, sizeof sin);
r = connect(fd, (struct sockaddr*)&sin, sizeof sin);
if(!NB_SessionReq(fd, "*SMBSERVER", "WINE"))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment