socklen_t.

This commit is contained in:
Ralf Corsepius
2005-05-09 12:41:28 +00:00
parent 51120f7c12
commit 1ed739c0a0
+2 -2
View File
@@ -331,8 +331,8 @@ getPacket (struct tftpStream *tp, int retryCount)
struct sockaddr s;
struct sockaddr_in i;
} from;
int fromlen = sizeof from;
len = recvfrom (tp->socket, (char *)&tp->pkbuf,
socklen_t fromlen = sizeof from;
len = recvfrom (tp->socket, &tp->pkbuf,
sizeof tp->pkbuf, 0,
&from.s, &fromlen);
if (len < 0)