From d80dcac7381da3a2efb026ae223acdaa625245b6 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 16 Feb 1999 16:40:02 +0000 Subject: deal with socklen_t --- lib/libpthread/uthread/uthread_connect.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/libpthread/uthread/uthread_connect.c') diff --git a/lib/libpthread/uthread/uthread_connect.c b/lib/libpthread/uthread/uthread_connect.c index 37ed517ca4b..59fc0724f47 100644 --- a/lib/libpthread/uthread/uthread_connect.c +++ b/lib/libpthread/uthread/uthread_connect.c @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $OpenBSD: uthread_connect.c,v 1.1 1998/08/27 09:00:58 d Exp $ + * $OpenBSD: uthread_connect.c,v 1.2 1999/02/16 16:40:00 deraadt Exp $ */ #include #include @@ -40,10 +40,11 @@ #include "pthread_private.h" int -connect(int fd, const struct sockaddr * name, int namelen) +connect(int fd, const struct sockaddr * name, socklen_t namelen) { struct sockaddr tmpname; - int errnolen, ret, tmpnamelen; + int errnolen, ret; + socklen_t tmpnamelen; if ((ret = _FD_LOCK(fd, FD_RDWR, NULL)) == 0) { if ((ret = _thread_sys_connect(fd, name, namelen)) < 0) { -- cgit v1.2.3