From 66fd8c29a2a2cafecc40cda720e95ba4f3319ca0 Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Thu, 23 Jan 2003 21:20:19 +0000 Subject: [PATCH] Properly cast struct sockaddr_in* to struct sockaddr* where needed. --- files/smb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/smb.c b/files/smb.c index da6558e3823..b62b2d83a9e 100644 --- a/files/smb.c +++ b/files/smb.c @@ -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")) {