From 67513ce0a2f4423fc5eb43afba92eeb32bc15f59 Mon Sep 17 00:00:00 2001 From: ad Date: Fri, 2 Mar 2007 18:58:45 +0000 Subject: [PATCH] Silence a gcc/lint warning. --- lib/libpthread/pthread.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libpthread/pthread.c b/lib/libpthread/pthread.c index 6b737d263dd9..d3a645683d4a 100644 --- a/lib/libpthread/pthread.c +++ b/lib/libpthread/pthread.c @@ -1,4 +1,4 @@ -/* $NetBSD: pthread.c,v 1.64 2007/03/02 18:53:51 ad Exp $ */ +/* $NetBSD: pthread.c,v 1.65 2007/03/02 18:58:45 ad Exp $ */ /*- * Copyright (c) 2001, 2002, 2003, 2006, 2007 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__RCSID("$NetBSD: pthread.c,v 1.64 2007/03/02 18:53:51 ad Exp $"); +__RCSID("$NetBSD: pthread.c,v 1.65 2007/03/02 18:58:45 ad Exp $"); #include #include @@ -1059,7 +1059,7 @@ pthread__unpark_all(pthread_t self, pthread_spin_t *lock, void *obj, struct pthread_queue_t *queue) { lwpid_t waiters[PTHREAD__UNPARK_MAX]; - int n, rv; + ssize_t n, rv; pthread_t thread, next; if (PTQ_EMPTY(queue)) { @@ -1112,7 +1112,7 @@ pthread__unpark_all(pthread_t self, pthread_spin_t *lock, void *obj, case 0: return; case 1: - rv = _lwp_unpark(waiters[0], obj); + rv = (ssize_t)_lwp_unpark(waiters[0], obj); if (rv != 0 && errno != EALREADY && errno != EINTR) { OOPS("_lwp_unpark failed"); SDPRINTF(("(pthread__unpark_all %p) "