summaryrefslogtreecommitdiff
path: root/sysdeps/mach
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach')
-rw-r--r--sysdeps/mach/hurd/i386/pt-setup.c2
-rw-r--r--sysdeps/mach/hurd/pt-hurd-cond-timedwait.c6
-rw-r--r--sysdeps/mach/hurd/pt-sigstate.c4
-rw-r--r--sysdeps/mach/hurd/pt-sysdep.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/sysdeps/mach/hurd/i386/pt-setup.c b/sysdeps/mach/hurd/i386/pt-setup.c
index b498e50..a59f71b 100644
--- a/sysdeps/mach/hurd/i386/pt-setup.c
+++ b/sysdeps/mach/hurd/i386/pt-setup.c
@@ -49,7 +49,7 @@ stack_setup (struct __pthread *thread,
+ ((thread->guardsize + __vm_page_size - 1)
/ __vm_page_size) * __vm_page_size);
- if (start_routine)
+ if (start_routine != NULL)
{
/* And then the call frame. */
top -= 3;
diff --git a/sysdeps/mach/hurd/pt-hurd-cond-timedwait.c b/sysdeps/mach/hurd/pt-hurd-cond-timedwait.c
index 182a7e2..41792e3 100644
--- a/sysdeps/mach/hurd/pt-hurd-cond-timedwait.c
+++ b/sysdeps/mach/hurd/pt-hurd-cond-timedwait.c
@@ -69,7 +69,7 @@ __pthread_hurd_cond_timedwait_internal (pthread_cond_t *cond,
assert (ss->intr_port == MACH_PORT_NULL); /* Sanity check for signal bugs. */
- if (abstime && (abstime->tv_nsec < 0 || abstime->tv_nsec >= 1000000000))
+ if (abstime != NULL && (abstime->tv_nsec < 0 || abstime->tv_nsec >= 1000000000))
return EINVAL;
/* Atomically enqueue our thread on the condition variable's queue of
@@ -111,7 +111,7 @@ __pthread_hurd_cond_timedwait_internal (pthread_cond_t *cond,
__pthread_mutex_unlock (mutex);
/* Block the thread. */
- if (abstime)
+ if (abstime != NULL)
err = __pthread_timedblock (self, abstime, clock_id);
else
{
@@ -153,7 +153,7 @@ __pthread_hurd_cond_timedwait_internal (pthread_cond_t *cond,
ss->cancel = 0;
__spin_unlock (&ss->lock);
- if (mutex)
+ if (mutex != NULL)
/* Reacquire the mutex and return. */
__pthread_mutex_lock (mutex);
diff --git a/sysdeps/mach/hurd/pt-sigstate.c b/sysdeps/mach/hurd/pt-sigstate.c
index bdc71c9..890fd57 100644
--- a/sysdeps/mach/hurd/pt-sigstate.c
+++ b/sysdeps/mach/hurd/pt-sigstate.c
@@ -37,10 +37,10 @@ __pthread_sigstate (struct __pthread *thread, int how,
_hurd_sigstate_lock (ss);
- if (oset)
+ if (oset != NULL)
*oset = ss->blocked;
- if (set)
+ if (set != NULL)
{
switch (how)
{
diff --git a/sysdeps/mach/hurd/pt-sysdep.c b/sysdeps/mach/hurd/pt-sysdep.c
index 118b264..40ebc8e 100644
--- a/sysdeps/mach/hurd/pt-sysdep.c
+++ b/sysdeps/mach/hurd/pt-sysdep.c
@@ -44,14 +44,14 @@ _init_routine (void *stack)
int err;
pthread_attr_t attr, *attrp = 0;
- if (__pthread_threads)
+ if (__pthread_threads != NULL)
/* Already initialized */
return 0;
/* Initialize the library. */
___pthread_init ();
- if (stack)
+ if (stack != NULL)
{
/* We are getting initialized due to dlopening a library using libpthread
while the main program was not linked against libpthread. */