|
From: <sv...@va...> - 2011-03-16 10:44:22
|
Author: sewardj
Date: 2011-03-16 10:44:13 +0000 (Wed, 16 Mar 2011)
New Revision: 11645
Log:
Fix compile warnings (missing prototypes for malloc, or some such).
Modified:
trunk/helgrind/tests/tc23_bogus_condwait.c
Modified: trunk/helgrind/tests/tc23_bogus_condwait.c
===================================================================
--- trunk/helgrind/tests/tc23_bogus_condwait.c 2011-03-15 08:13:08 UTC (rev 11644)
+++ trunk/helgrind/tests/tc23_bogus_condwait.c 2011-03-16 10:44:13 UTC (rev 11645)
@@ -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 @@
my_sem_wait( quit_now );
return NULL;
}
-
void* grab_the_lock ( void* uu )
{
int r= pthread_mutex_lock( &mx[2] ); assert(!r);
|