mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-02 14:37:30 +00:00
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.
This commit is contained in:
parent
252b24049c
commit
cea994b902
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user