Update.
authorUlrich Drepper <drepper@redhat.com>
Sun, 8 Dec 2002 09:28:13 +0000 (09:28 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 8 Dec 2002 09:28:13 +0000 (09:28 +0000)
* pt-fcntl.c (__fcntl): Initialize oldtype to avoid warning.

* pthread_join.c: Likewise.
* pthread_timedjoin.c: Likewise.

nptl/ChangeLog
nptl/pt-fcntl.c
nptl/pthread_join.c
nptl/pthread_timedjoin.c

index f9686e0..b97c512 100644 (file)
@@ -1,5 +1,7 @@
 2002-12-08  Ulrich Drepper  <drepper@redhat.com>
 
+       * pt-fcntl.c (__fcntl): Initialize oldtype to avoid warning.
+
        * pthreadP.h: Declare __pthread_enable_asynccancel and
        __pthread_disable_asynccancel.
        (CANCEL_ASYNC): Use __pthread_enable_asynccancel.
@@ -48,6 +50,8 @@
        * pt-waitpid.c: Likewise.
        * pt-write.c: Likewise.
        * pt-writev.c: Likewise.
+       * pthread_join.c: Likewise.
+       * pthread_timedjoin.c: Likewise.
 
        * pt-sigpause.c (sigsuspend): Call __sigsuspend.
        (__xpg_sigpause): New function.
index 9d7f68e..5b55f0b 100644 (file)
@@ -29,7 +29,7 @@
 int
 __fcntl (int fd, int cmd, ...)
 {
-  int oldtype;
+  int oldtype = 0;
   va_list ap;
 
   if (cmd == F_SETLKW)
index a223a7d..4edbced 100644 (file)
@@ -73,8 +73,7 @@ pthread_join (threadid, thread_return)
   pthread_cleanup_push (cleanup, &pd->joinid);
 
   /* Switch to asynchronous cancellation.  */
-  int oldtype;
-  CANCEL_ASYNC (oldtype);
+  int oldtype = CANCEL_ASYNC ();
 
 
   /* Wait for the child.  */
index d3f4a28..7725c52 100644 (file)
@@ -75,8 +75,7 @@ pthread_timedjoin_np (threadid, thread_return, abstime)
   pthread_cleanup_push (cleanup, &pd->joinid);
 
   /* Switch to asynchronous cancellation.  */
-  int oldtype;
-  CANCEL_ASYNC (oldtype);
+  int oldtype = CANCEL_ASYNC ();
 
 
   /* Wait for the child.  */