From 4aa7a4fef2e55ec1fffaca2a3a02c09463201215 Mon Sep 17 00:00:00 2001 From: Azreyo <58790873+Azreyo@users.noreply.github.com> Date: Tue, 25 Feb 2025 13:09:57 +0100 Subject: [PATCH] Update server.c Fixed warnings while compiling with makefile --- server.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.c b/server.c index ea779e5..e767fbc 100644 --- a/server.c +++ b/server.c @@ -111,6 +111,7 @@ RateLimit *rate_limits = NULL; int rate_limit_count = 0; pthread_mutex_t rate_limit_mutex = PTHREAD_MUTEX_INITIALIZER; +void cleanup_thread_pool(void); void *handle_http_client(void *arg); void *handle_https_client(void *arg); void log_event(const char *message); @@ -196,6 +197,7 @@ void set_socket_options(int socket_fd) { } void *start_http_server(void *arg) { + (void)arg; http_socket = socket(AF_INET, SOCK_STREAM, 0); if (http_socket < 0) { perror(BOLD RED "Error creating HTTP socket" RESET); @@ -294,6 +296,7 @@ void *start_http_server(void *arg) { void *start_https_server(void *arg) { + (void)arg; https_socket = socket(AF_INET, SOCK_STREAM, 0); if (https_socket < 0) { perror(BOLD RED "Error creating HTTPS socket" RESET);