From cea994b902c7c98f5f16341686d30a40e32dfc95 Mon Sep 17 00:00:00 2001 From: Sebastian Bauer Date: Thu, 10 Jan 2013 12:39:17 +0100 Subject: Don't call pthread_exit() in the callback. Compilers that are not aware that pthread_exit() does not return issue a warning when compiling the present code. This change exchanges the call to pthread_exit() with a simple return statement. According to the pthread specification this is equivalent. --- examples/network/fetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/network') diff --git a/examples/network/fetch.c b/examples/network/fetch.c index 437b137d3..416788b63 100644 --- a/examples/network/fetch.c +++ b/examples/network/fetch.c @@ -42,7 +42,7 @@ static void *download(void *ptr) exit: data->finished = 1; - pthread_exit(&data->ret); + return &data->ret; } static int update_cb(const char *refname, const git_oid *a, const git_oid *b, void *data) -- cgit v1.2.1