summary refs log tree commit diff
path: root/rt/lio_listio64.c
diff options
context:
space:
mode:
Diffstat (limited to 'rt/lio_listio64.c')
-rw-r--r--rt/lio_listio64.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/rt/lio_listio64.c b/rt/lio_listio64.c
index 69b78b79fb..9cb1125f65 100644
--- a/rt/lio_listio64.c
+++ b/rt/lio_listio64.c
@@ -82,13 +82,10 @@ lio_listio64 (mode, list, nent, sig)
     }
   else if (mode == LIO_WAIT)
     {
-      pthread_cond_t cond;
+      pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
       struct waitlist waitlist[nent];
       int oldstate;
 
-      /* Initialize the conditional variable.  */
-      pthread_cond_init (&cond, NULL);
-
       total = 0;
       for (cnt = 0; cnt < nent; ++cnt)
 	if (list[cnt] != NULL && list[cnt]->aio_lio_opcode != LIO_NOP