aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-12-08 09:28:13 +0000
committerUlrich Drepper <drepper@redhat.com>2002-12-08 09:28:13 +0000
commita3957dd58406620c6b4541bafb412d68723979c8 (patch)
treeca10840b44ba0a4f8b92f66873e86913aac48f85
parentbdb04f922004ff8433591f138e40c09722836c45 (diff)
downloadglibc-a3957dd58406620c6b4541bafb412d68723979c8.zip
glibc-a3957dd58406620c6b4541bafb412d68723979c8.tar.gz
glibc-a3957dd58406620c6b4541bafb412d68723979c8.tar.bz2
Update.
* pt-fcntl.c (__fcntl): Initialize oldtype to avoid warning. * pthread_join.c: Likewise. * pthread_timedjoin.c: Likewise.
-rw-r--r--nptl/ChangeLog4
-rw-r--r--nptl/pt-fcntl.c2
-rw-r--r--nptl/pthread_join.c3
-rw-r--r--nptl/pthread_timedjoin.c3
4 files changed, 7 insertions, 5 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog
index f9686e0..b97c512 100644
--- a/nptl/ChangeLog
+++ b/nptl/ChangeLog
@@ -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.
diff --git a/nptl/pt-fcntl.c b/nptl/pt-fcntl.c
index 9d7f68e..5b55f0b 100644
--- a/nptl/pt-fcntl.c
+++ b/nptl/pt-fcntl.c
@@ -29,7 +29,7 @@
int
__fcntl (int fd, int cmd, ...)
{
- int oldtype;
+ int oldtype = 0;
va_list ap;
if (cmd == F_SETLKW)
diff --git a/nptl/pthread_join.c b/nptl/pthread_join.c
index a223a7d..4edbced 100644
--- a/nptl/pthread_join.c
+++ b/nptl/pthread_join.c
@@ -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. */
diff --git a/nptl/pthread_timedjoin.c b/nptl/pthread_timedjoin.c
index d3f4a28..7725c52 100644
--- a/nptl/pthread_timedjoin.c
+++ b/nptl/pthread_timedjoin.c
@@ -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. */