]> sourceware.org Git - glibc.git/commitdiff
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 f9686e09cb5a9783df25d7b34329d97e56acb16f..b97c5120c887179fd3f5bb78977802afd5906836 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 9d7f68e4c1f6616b5877b63479271b20383ab283..5b55f0b9202af1124922b0e965105c958304f053 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 a223a7d4a333bbd00776e4dee1b265faff07ebcb..4edbced2c12bed2764f9b13b2563de95a4f31c71 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 d3f4a282a62a9050e519abf27ea3b2323674dd21..7725c522292fbae131f9d79d6f2bcdb31bb0d853 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.  */
This page took 0.049654 seconds and 5 git commands to generate.