summaryrefslogtreecommitdiffstats
path: root/cpukit/librpc
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/librpc')
-rw-r--r--cpukit/librpc/src/rpc/clnt_tcp.c2
-rw-r--r--cpukit/librpc/src/rpc/clnt_udp.c4
-rw-r--r--cpukit/librpc/src/rpc/pmap_rmt.c3
-rw-r--r--cpukit/librpc/src/rpc/rtime.c2
-rw-r--r--cpukit/librpc/src/rpc/svc_tcp.c4
-rw-r--r--cpukit/librpc/src/rpc/svc_udp.c2
6 files changed, 9 insertions, 8 deletions
diff --git a/cpukit/librpc/src/rpc/clnt_tcp.c b/cpukit/librpc/src/rpc/clnt_tcp.c
index e497a35657..a6e80eda8b 100644
--- a/cpukit/librpc/src/rpc/clnt_tcp.c
+++ b/cpukit/librpc/src/rpc/clnt_tcp.c
@@ -365,7 +365,7 @@ clnttcp_control(cl, request, info)
{
register struct ct_data *ct = (struct ct_data *)cl->cl_private;
register struct timeval *tv;
- int len;
+ socklen_t len;
switch (request) {
case CLSET_FD_CLOSE:
diff --git a/cpukit/librpc/src/rpc/clnt_udp.c b/cpukit/librpc/src/rpc/clnt_udp.c
index 38c684eabd..a83014aca2 100644
--- a/cpukit/librpc/src/rpc/clnt_udp.c
+++ b/cpukit/librpc/src/rpc/clnt_udp.c
@@ -226,7 +226,7 @@ clntudp_call(cl, proc, xargs, argsp, xresults, resultsp, utimeout)
register XDR *xdrs;
register int outlen;
register int inlen;
- int fromlen;
+ socklen_t fromlen;
fd_set *fds, readfds;
struct sockaddr_in from;
struct rpc_msg reply_msg;
@@ -443,7 +443,7 @@ clntudp_control(cl, request, info)
{
register struct cu_data *cu = (struct cu_data *)cl->cl_private;
register struct timeval *tv;
- int len;
+ socklen_t len;
switch (request) {
case CLSET_FD_CLOSE:
diff --git a/cpukit/librpc/src/rpc/pmap_rmt.c b/cpukit/librpc/src/rpc/pmap_rmt.c
index 709a7ce241..d1603ae635 100644
--- a/cpukit/librpc/src/rpc/pmap_rmt.c
+++ b/cpukit/librpc/src/rpc/pmap_rmt.c
@@ -240,7 +240,8 @@ clnt_broadcast(prog, vers, proc, xargs, argsp, xresults, resultsp, eachresult)
AUTH *unix_auth = authunix_create_default();
XDR xdr_stream;
register XDR *xdrs = &xdr_stream;
- int outlen, inlen, fromlen, nets;
+ int outlen, inlen, nets;
+ socklen_t fromlen;
register int sock;
int on = 1;
fd_set *fds = 0, readfds; /* initialized to avoid warning */
diff --git a/cpukit/librpc/src/rpc/rtime.c b/cpukit/librpc/src/rpc/rtime.c
index 042d4f4e1d..a724350c48 100644
--- a/cpukit/librpc/src/rpc/rtime.c
+++ b/cpukit/librpc/src/rpc/rtime.c
@@ -76,7 +76,7 @@ rtime(addrp, timep, timeout)
int res;
unsigned long thetime;
struct sockaddr_in from;
- int fromlen;
+ socklen_t fromlen;
int type;
struct servent *serv;
diff --git a/cpukit/librpc/src/rpc/svc_tcp.c b/cpukit/librpc/src/rpc/svc_tcp.c
index 116ba7e379..413c9893a7 100644
--- a/cpukit/librpc/src/rpc/svc_tcp.c
+++ b/cpukit/librpc/src/rpc/svc_tcp.c
@@ -132,7 +132,7 @@ svctcp_create(sock, sendsize, recvsize)
register SVCXPRT *xprt;
register struct tcp_rendezvous *r;
struct sockaddr_in addr;
- int len = sizeof(struct sockaddr_in);
+ socklen_t len = sizeof(struct sockaddr_in);
int on;
if (sock == RPC_ANYSOCK) {
@@ -242,7 +242,7 @@ rendezvous_request(xprt)
int sock;
struct tcp_rendezvous *r;
struct sockaddr_in addr;
- int len;
+ socklen_t len;
int off;
r = (struct tcp_rendezvous *)xprt->xp_p1;
diff --git a/cpukit/librpc/src/rpc/svc_udp.c b/cpukit/librpc/src/rpc/svc_udp.c
index eb5736b23f..c25095bf33 100644
--- a/cpukit/librpc/src/rpc/svc_udp.c
+++ b/cpukit/librpc/src/rpc/svc_udp.c
@@ -104,7 +104,7 @@ svcudp_bufcreate(sock, sendsz, recvsz)
register SVCXPRT *xprt;
register struct svcudp_data *su;
struct sockaddr_in addr;
- int len = sizeof(struct sockaddr_in);
+ socklen_t len = sizeof(struct sockaddr_in);
if (sock == RPC_ANYSOCK) {
if ((sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0) {