]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix compile warnings (missing prototypes for malloc, or some such).
authorJulian Seward <jseward@acm.org>
Wed, 16 Mar 2011 10:44:13 +0000 (10:44 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 16 Mar 2011 10:44:13 +0000 (10:44 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11645

helgrind/tests/tc23_bogus_condwait.c

index aab6f89c32ea15b49177712b5d2e1a533cf36509..a13632ce223744c7e6a279430237dbef0f98acf7 100644 (file)
@@ -6,6 +6,7 @@
 #include <unistd.h>
 #include <semaphore.h>
 #include <stdio.h>
+#include <stdlib.h>
 pthread_mutex_t mx[4];
 pthread_cond_t cv;
 pthread_rwlock_t rwl;
@@ -34,7 +35,6 @@ void* rescue_me ( void* uu )
   my_sem_wait( quit_now );
   return NULL;
 }
-
 void* grab_the_lock ( void* uu )
 {
    int r= pthread_mutex_lock( &mx[2] ); assert(!r);