diff --git a/lib/api.c b/lib/api.c index deb39c049..c748c2f9c 100644 --- a/lib/api.c +++ b/lib/api.c @@ -31,7 +31,7 @@ #include "compat.h" /* Forward declarations */ -static void * worker(void *ctx); +static void * api_worker(void *ctx); int api_ws_protocol_cb(struct lws *wsi, enum lws_callback_reasons reason, void *user, void *in, size_t len) { @@ -250,7 +250,7 @@ int api_start(struct api *a) info("Starting API sub-system"); - ret = pthread_create(&a->thread, NULL, worker, a); + ret = pthread_create(&a->thread, NULL, api_worker, a); if (ret) error("Failed to start API worker thread"); @@ -290,7 +290,7 @@ int api_stop(struct api *a) return 0; } -static void * worker(void *ctx) +static void * api_worker(void *ctx) { int pulled; diff --git a/lib/web.c b/lib/web.c index a92702a4f..0552ae4a1 100644 --- a/lib/web.c +++ b/lib/web.c @@ -144,7 +144,7 @@ static void logger(int level, const char *msg) { } } -static void * worker(void *ctx) +static void * web_worker(void *ctx) { struct web *w = ctx; @@ -244,7 +244,7 @@ int web_start(struct web *w) error("WebSocket: failed to initialize server"); } - ret = pthread_create(&w->thread, NULL, worker, w); + ret = pthread_create(&w->thread, NULL, web_worker, w); if (ret) error("Failed to start Web worker thread");