Use socklen_t for the length of a socket structure instead of `int'.

Reviewed by:	mike
This commit is contained in:
keramida 2002-06-09 04:18:45 +00:00
parent b309515be2
commit 3eeaf63c36

View File

@ -76,7 +76,8 @@ netsettime(time_t tval)
struct sockaddr_in lsin, dest, from;
fd_set ready;
long waittime;
int s, length, port, timed_ack, found, lerr;
int s, port, timed_ack, found, lerr;
socklen_t length;
char hostname[MAXHOSTNAMELEN];
if ((sp = getservbyname("timed", "udp")) == NULL) {