summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2005-05-02 14:02:43 +0000
committerdelphij <delphij@FreeBSD.org>2005-05-02 14:02:43 +0000
commitf5073c4856238560de7d21de057fcda20d479a2e (patch)
tree13c34f0bd648c36920b1a7c7bc8f3f618fe66a3c /usr.sbin
parent7b76dc45c08e1ededb8ea128f22cda4a705b81cc (diff)
downloadFreeBSD-src-f5073c4856238560de7d21de057fcda20d479a2e.zip
FreeBSD-src-f5073c4856238560de7d21de057fcda20d479a2e.tar.gz
Use socklen_t in place of socket operations, instead of int
Diffstat (limited to 'usr.sbin')
-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 c4790a6..e4170bd 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,
OpenPOWER on IntegriCloud