public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* Patch for linuxthreads/condvar
@ 2000-02-13  6:32 Andreas Jaeger
  0 siblings, 0 replies; only message in thread
From: Andreas Jaeger @ 2000-02-13  6:32 UTC (permalink / raw)
  To: GNU libc hacker

With the current CVS code I get:
condvar.c:197: warning: passing arg 1 of `__libc_nanosleep' from incompatible pointer type
condvar.c:340: warning: passing arg 1 of `__libc_nanosleep' from incompatible pointer type

A patch is appended.  The patch is needed for glibc 2.2 only.

2000-02-13  Andreas Jaeger  <aj@suse.de>

	* condvar.c (pthread_cond_timedwait_relative_new): Fix last patch.
	(pthread_cond_timedwait_relative_old): Likewise.

--- linuxthreads/condvar.c.~1~	Sun Feb 13 12:04:11 2000
+++ linuxthreads/condvar.c	Sun Feb 13 13:22:35 2000
@@ -194,7 +194,7 @@
 	;
 #else
       /* Sleep for the required duration */
-      retsleep = __libc_nanosleep(&reltime, NULL);
+      retsleep = __libc_nanosleep(reltime, NULL);
 #endif
       /* Block the restart signal again */
       sigprocmask(SIG_SETMASK, &initial_mask, NULL);
@@ -337,7 +337,7 @@
       ;
 #else
     /* Sleep for the required duration */
-    retsleep = __libc_nanosleep(&reltime, NULL);
+    retsleep = __libc_nanosleep(reltime, NULL);
 #endif
     /* Block the restart signal again */
     sigprocmask(SIG_SETMASK, &initial_mask, NULL);

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.rhein-neckar.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-02-13  6:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-13  6:32 Patch for linuxthreads/condvar Andreas Jaeger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).