aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/update.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/update.c b/src/update.c
index 4498449bd..34ec1ba77 100644
--- a/src/update.c
+++ b/src/update.c
@@ -433,6 +433,7 @@ int directory_update_init(char *path)
void reap_update_task(void)
{
+ void *thread_return;
enum update_return ret;
assert(pthread_equal(pthread_self(), main_task));
@@ -449,8 +450,9 @@ void reap_update_task(void)
if (progress != UPDATE_PROGRESS_DONE)
return;
- if (pthread_join(update_thr, (void **)&ret))
+ if (pthread_join(update_thr, &thread_return))
FATAL("error joining update thread: %s\n", strerror(errno));
+ ret = (enum update_return)(size_t)thread_return;
if (ret == UPDATE_RETURN_UPDATED)
playlistVersionChange();