commit e48d5a9827376162a95f9b990193d6efa8eefa17
parent 555e3b5ac27f5ada97dcb0a4857b4d72ecfd8b0f
Author: Yersa Nordman <yersa@finwo.nl>
Date: Thu, 26 Oct 2023 23:11:52 +0200
Remove http_server_fnet_thread, that's in fnet itself now
Diffstat:
2 files changed, 0 insertions(+), 10 deletions(-)
diff --git a/src/http-server.c b/src/http-server.c
@@ -8,10 +8,6 @@
#include "http-server.h"
-#ifndef UNUSED(x)
-#define UNUSED(x) (void)x
-#endif
-
static void sleep_ms(long ms) {
#if defined(__APPLE__)
usleep(ms * 1000);
@@ -146,11 +142,6 @@ void _hs_onListenClose(struct fnet_ev *ev) {
}
}
-void http_server_fnet_thread(void *arg) {
- UNUSED(arg);
- FNET_RETURNCODE ret = fnet_main();
-}
-
void http_server_main(struct http_server_opts *opts) {
if (!opts) exit(1);
opts->shutdown = false;
diff --git a/src/http-server.h b/src/http-server.h
@@ -27,7 +27,6 @@ struct http_server_events {
void (*tick)(void *udata);
};
-void http_server_fnet_thread(void *arg);
void http_server_main(struct http_server_opts *opts);
void http_server_response_send(struct http_server_reqdata *reqdata, bool close);
void http_server_route(const char *method, const char *path, void (*fn)(struct http_server_reqdata*));