* pt-fcntl.c (__fcntl): Initialize oldtype to avoid warning.

	* pthread_join.c: Likewise.
	* pthread_timedjoin.c: Likewise.
This commit is contained in:
Ulrich Drepper 2002-12-08 09:28:13 +00:00
parent bdb04f9220
commit a3957dd584
4 changed files with 7 additions and 5 deletions

View 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.

View File

@ -29,7 +29,7 @@
int
__fcntl (int fd, int cmd, ...)
{
int oldtype;
int oldtype = 0;
va_list ap;
if (cmd == F_SETLKW)

View 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. */

View 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. */