diff options
Diffstat (limited to 'lib/libc_r/uthread/uthread_connect.c')
-rw-r--r-- | lib/libc_r/uthread/uthread_connect.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc_r/uthread/uthread_connect.c b/lib/libc_r/uthread/uthread_connect.c index 37ed517ca4b..59fc0724f47 100644 --- a/lib/libc_r/uthread/uthread_connect.c +++ b/lib/libc_r/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 <errno.h> #include <sys/types.h> @@ -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) { |