From c0474982a6fc155da8fb4de9ad2e6d72b9a878f8 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Sun, 28 Aug 2022 16:05:11 -0400 Subject: [PATCH] Fix compile warnings and errors on Linux --- src/HttpServer.c | 5 +---- src/Util.c | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/HttpServer.c b/src/HttpServer.c index f05ba56..b9dc91b 100644 --- a/src/HttpServer.c +++ b/src/HttpServer.c @@ -338,10 +338,7 @@ error: QueueFree(server->connQueue); } - if (server->connQueueMutex) - { - pthread_mutex_destroy(&server->connQueueMutex); - } + pthread_mutex_destroy(&server->connQueueMutex); if (server->threadPool) { diff --git a/src/Util.c b/src/Util.c index 6220f9d..0a3c9ea 100644 --- a/src/Util.c +++ b/src/Util.c @@ -25,6 +25,7 @@ #include #include +#include #include long