summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2023-03-19 11:02:53 +0200
committerSergey Poznyakoff <gray@gnu.org>2023-03-19 11:02:53 +0200
commitfa9e2d43f220cb1be94e8d83fa41136b77697891 (patch)
treeca676b548f9afbc174ad983824629158f60769d9
parentd10444ec6d6b51ff8d265e3d3035e4d3c45477dc (diff)
downloadfileserv-master.tar.gz
fileserv-master.tar.bz2
Minor fixHEADmaster
* src/fileserv.c (http_server): Place MHD_OPTION_EXTERNAL_LOGGER option first, to avoid runtime error on newer libmicrohttpd.
-rw-r--r--src/fileserv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileserv.c b/src/fileserv.c
index 09eefcc..00521bd 100644
--- a/src/fileserv.c
+++ b/src/fileserv.c
@@ -660,9 +660,9 @@ http_server(int fd, struct sockaddr *server_addr)
| MHD_USE_ERROR_LOG, 0,
fileserv_acl, server_addr,
fileserv_handler, NULL,
- MHD_OPTION_LISTEN_SOCKET, fd,
MHD_OPTION_EXTERNAL_LOGGER, fileserv_logger,
NULL,
+ MHD_OPTION_LISTEN_SOCKET, fd,
MHD_OPTION_END);
/* Unblock only the fatal signals */
sigdelset(&sigs, SIGPIPE);

Return to:

Send suggestions and report system problems to the System administrator.