summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/sw_sync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/sw_sync.c b/tests/sw_sync.c
index c6867e09..59603763 100644
--- a/tests/sw_sync.c
+++ b/tests/sw_sync.c
@@ -667,7 +667,7 @@ static struct {
pthread_mutex_t lock;
} test_mpsc_data;
-static int mpsc_producer_thread(void *d)
+static void *mpsc_producer_thread(void *d)
{
int id = (long)d;
int fence, i;
@@ -700,7 +700,7 @@ static int mpsc_producer_thread(void *d)
close(fence);
}
- return 0;
+ return NULL;
}
static int mpsc_consumer_thread(void)