about summary refs log tree commit diff
path: root/rt/lio_listio.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-04-11 11:51:23 +0000
committerUlrich Drepper <drepper@redhat.com>1998-04-11 11:51:23 +0000
commit18de8c733f47eedd3ccb9705c2d3bb8464025588 (patch)
tree358674101936d87ef0756dfebf2072791bb5ed46 /rt/lio_listio.c
parentb9337b6a58501fcbae612a86d4219a8db2c5c1ff (diff)
downloadglibc-18de8c733f47eedd3ccb9705c2d3bb8464025588.tar.gz
glibc-18de8c733f47eedd3ccb9705c2d3bb8464025588.tar.xz
glibc-18de8c733f47eedd3ccb9705c2d3bb8464025588.zip
Update.
1998-04-11  Ulrich Drepper  <drepper@cygnus.com>

	* rt/aio_suspend.c (aio_suspend): Use PTHREAD_COND_INITIALIZER
	instead of call to pthread_cond_init.
	* rt/lio_listio.c (lio_listio): Likewise.
	* rt/lio_listio64.c (lio_listio64): Likewise.

	* nis/nis_findserv.c: Include sys/socket.h.
Diffstat (limited to 'rt/lio_listio.c')
-rw-r--r--rt/lio_listio.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/rt/lio_listio.c b/rt/lio_listio.c
index 07c8d3ea28..e4d972960f 100644
--- a/rt/lio_listio.c
+++ b/rt/lio_listio.c
@@ -82,13 +82,10 @@ lio_listio (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