aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/rpc.yppasswdd
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2005-05-02 14:02:43 +0000
committerXin LI <delphij@FreeBSD.org>2005-05-02 14:02:43 +0000
commit8516925d8af5de30a392b1da3a6d858a931ef2cd (patch)
tree13c34f0bd648c36920b1a7c7bc8f3f618fe66a3c /usr.sbin/rpc.yppasswdd
parent756d2046fb7768520443eb40e50c5bf5be611e65 (diff)
Use socklen_t in place of socket operations, instead of int
Notes
Notes: svn path=/head/; revision=145803
Diffstat (limited to 'usr.sbin/rpc.yppasswdd')
-rw-r--r--usr.sbin/rpc.yppasswdd/yppasswdd_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rpc.yppasswdd/yppasswdd_main.c b/usr.sbin/rpc.yppasswdd/yppasswdd_main.c
index c4790a60ed99..e4170bd0e471 100644
--- a/usr.sbin/rpc.yppasswdd/yppasswdd_main.c
+++ b/usr.sbin/rpc.yppasswdd/yppasswdd_main.c
@@ -163,7 +163,7 @@ main(int argc, char *argv[])
struct rlimit rlim;
SVCXPRT *transp = NULL;
struct sockaddr_in saddr;
- int asize = sizeof (saddr);
+ socklen_t asize = sizeof (saddr);
struct netconfig *nconf;
void *localhandle;
int ch;
@@ -253,7 +253,7 @@ the %s domain -- aborting", yppasswd_domain);
debug = 0;
if (getsockname(0, (struct sockaddr *)&saddr, &asize) == 0) {
- int ssize = sizeof (int);
+ socklen_t ssize = sizeof (int);
if (saddr.sin_family != AF_INET)
exit(1);
if (getsockopt(0, SOL_SOCKET, SO_TYPE,