* pt-fcntl.c (__fcntl): Initialize oldtype to avoid warning.
* pthread_join.c: Likewise.
* pthread_timedjoin.c: Likewise.
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.
* 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.
int
__fcntl (int fd, int cmd, ...)
{
- int oldtype;
+ int oldtype = 0;
va_list ap;
if (cmd == F_SETLKW)
pthread_cleanup_push (cleanup, &pd->joinid);
/* Switch to asynchronous cancellation. */
- int oldtype;
- CANCEL_ASYNC (oldtype);
+ int oldtype = CANCEL_ASYNC ();
/* Wait for the child. */
pthread_cleanup_push (cleanup, &pd->joinid);
/* Switch to asynchronous cancellation. */
- int oldtype;
- CANCEL_ASYNC (oldtype);
+ int oldtype = CANCEL_ASYNC ();
/* Wait for the child. */