X-Git-Url: https://git.saurik.com/apple/libinfo.git/blobdiff_plain/ad21edcc50f98a2a0f674a569817952d671962c6..d90e699ca2566289cddc68cd0862d05780b54551:/rpc.subproj/bindresvport.c diff --git a/rpc.subproj/bindresvport.c b/rpc.subproj/bindresvport.c index 2e47ff0..29d82d4 100644 --- a/rpc.subproj/bindresvport.c +++ b/rpc.subproj/bindresvport.c @@ -84,7 +84,7 @@ bindresvport_sa(sd, sa) struct sockaddr_in6 *sin6; int proto, portrange, portlow; u_int16_t port; - int salen; + u_int32_t salen; if (sa == NULL) { salen = sizeof(myaddr); @@ -120,7 +120,7 @@ bindresvport_sa(sd, sa) sa->sa_len = salen; if (port == 0) { - int oldlen = sizeof(old); + u_int32_t oldlen = sizeof(old); error = getsockopt(sd, proto, portrange, &old, &oldlen); if (error < 0)