Date: Sun, 27 Feb 2005 11:49:56 GMT From: David Xu <davidxu@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 71975 for review Message-ID: <200502271149.j1RBnuhl085929@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=71975 Change 71975 by davidxu@davidxu_alona on 2005/02/27 11:49:13 Include stddef.h, so we can use NULL other than zero. Affected files ... .. //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_private.h#23 edit Differences ... ==== //depot/projects/davidxu_thread/src/lib/libthread/thread/thr_private.h#23 (text+ko) ==== @@ -29,8 +29,6 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * Private thread definitions for the uthread kernel. - * * $FreeBSD$ */ @@ -48,6 +46,7 @@ #include <errno.h> #include <limits.h> #include <signal.h> +#include <stddef.h> #include <stdio.h> #include <sched.h> #include <unistd.h> @@ -492,7 +491,7 @@ struct tcb *tcb; /* Cleanup handlers Link List */ - struct pthread_cleanup *cleanup; + struct pthread_cleanup *cleanup; }; #define THR_UMTX_TRYLOCK(thrd, lck) \ @@ -828,14 +827,14 @@ static inline int _thr_is_inited(void) { - return (_thr_initial != 0); + return (_thr_initial != NULL); } static inline void _thr_check_init(void) { - if (_thr_initial == 0) - _libpthread_init(0); + if (_thr_initial == NULL) + _libpthread_init(NULL); } __END_DECLS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502271149.j1RBnuhl085929>