aboutsummaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorStefan Farfeleder <stefanf@FreeBSD.org>2005-03-10 00:57:01 +0000
committerStefan Farfeleder <stefanf@FreeBSD.org>2005-03-10 00:57:01 +0000
commit720138bbdef2c8fb69971f16e9834bdd44dca316 (patch)
tree7813428bda53806335dcac739460e461e963ab47 /lib/libc
parente891d82b5674ff785a8ab1018610c598f36b7b8a (diff)
downloadsrc-720138bbdef2c8fb69971f16e9834bdd44dca316.tar.gz
src-720138bbdef2c8fb69971f16e9834bdd44dca316.zip
Use socklen_t where appropriate.
Approved by: alfred
Notes
Notes: svn path=/head/; revision=143344
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/rpc/auth_time.c3
-rw-r--r--lib/libc/rpc/rtime.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/rpc/auth_time.c b/lib/libc/rpc/auth_time.c
index 0bebea612792..ae108c28ef9f 100644
--- a/lib/libc/rpc/auth_time.c
+++ b/lib/libc/rpc/auth_time.c
@@ -253,7 +253,8 @@ __rpc_get_time_offset(td, srv, thost, uaddr, netid)
nis_server tsrv;
void (*oldsig)() = NULL; /* old alarm handler */
struct sockaddr_in sin;
- int s = RPC_ANYSOCK, len;
+ socklen_t len;
+ int s = RPC_ANYSOCK;
int type = 0;
td->tv_sec = 0;
diff --git a/lib/libc/rpc/rtime.c b/lib/libc/rpc/rtime.c
index 62538404c0ee..39ac19ba4a1f 100644
--- a/lib/libc/rpc/rtime.c
+++ b/lib/libc/rpc/rtime.c
@@ -78,7 +78,7 @@ rtime(addrp, timep, timeout)
int res;
unsigned long thetime;
struct sockaddr_in from;
- int fromlen;
+ socklen_t fromlen;
int type;
struct servent *serv;