socklen_t.

This commit is contained in:
Ralf Corsepius
2005-05-10 08:06:58 +00:00
parent 385347e53d
commit 8b02581b22
3 changed files with 3 additions and 3 deletions

View File

@@ -94,7 +94,7 @@ tryServer (int i, int s, rtems_bsdnet_ntp_callback_t callback, void *usr_data)
{ {
int l = 0; int l = 0;
struct timeval tv; struct timeval tv;
int farlen; socklen_t farlen;
struct sockaddr_in farAddr; struct sockaddr_in farAddr;
struct ntpPacketSmall packet; struct ntpPacketSmall packet;

View File

@@ -164,7 +164,7 @@ rcmd(ahost, rport, locuser, remuser, cmd, fd2p)
} else { } else {
char num[8]; char num[8];
int s2 = rresvport(&lport), s3; int s2 = rresvport(&lport), s3;
int len = sizeof(from); socklen_t len = sizeof(from);
int nfds; int nfds;
if (s2 < 0) if (s2 < 0)

View File

@@ -548,7 +548,7 @@ read_len:
int dsmasklen; int dsmasklen;
#endif #endif
struct sockaddr_in from; struct sockaddr_in from;
int fromlen; socklen_t fromlen;
if ((s < 0) || vc) { if ((s < 0) || vc) {
if (vc) if (vc)