PERFORCE change 71975 for review
David Xu
davidxu at FreeBSD.org
Sun Feb 27 11:49:57 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=71975
Change 71975 by davidxu at 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
More information about the p4-projects
mailing list