From 0e3bded42d7da064f9e1eb8510c649cea1a3d99d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 3 May 2020 14:25:17 +0200 Subject: [PATCH] module/mpd: thrd_success isn't necessarily 0 --- modules/mpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mpd.c b/modules/mpd.c index 71757bf..743dc2e 100644 --- a/modules/mpd.c +++ b/modules/mpd.c @@ -559,7 +559,7 @@ refresh_in(struct module *mod, long milli_seconds) /* Create thread */ int r = thrd_create(&m->refresh_thread_id, &refresh_in_thread, ctx); - if (r != 0) { + if (r != thrd_success) { LOG_ERR("failed to create refresh thread"); close(m->refresh_abort_fd); m->refresh_abort_fd = -1;