summaryrefslogtreecommitdiff
path: root/lib/libc_r/uthread/uthread_connect.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-02-16 16:40:02 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-02-16 16:40:02 +0000
commitd80dcac7381da3a2efb026ae223acdaa625245b6 (patch)
tree844f81839683d7e267cffc23f1bdeec726bbe728 /lib/libc_r/uthread/uthread_connect.c
parentb58a1a6c18a32db53f7e727c2a90c68c552b56b6 (diff)
deal with socklen_t
Diffstat (limited to 'lib/libc_r/uthread/uthread_connect.c')
-rw-r--r--lib/libc_r/uthread/uthread_connect.c7
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) {