summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authorpoesty <poesty@noreply.codeberg.org>2023-05-07 07:27:24 +0000
committerpoesty <poesty@noreply.codeberg.org>2023-05-07 07:27:24 +0000
commite65760a349112abce39404ca50f6bc2f1301bed9 (patch)
treec2484af8006961d95dcf39cf16c3749100a713c9 /httpd.c
parent7d3a909598c1fc9def2069aeeccda58e305c738a (diff)
parent6a1cc55676eaf18ecadb42b86474aaef73cf9805 (diff)
Merge pull request 'master' (#1) from grunfink/snac2:master into master
Reviewed-on: https://codeberg.org/poesty/snac2/pulls/1
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/httpd.c b/httpd.c
index 70083a1..fe93727 100644
--- a/httpd.c
+++ b/httpd.c
@@ -43,12 +43,14 @@ d_char *nodeinfo_2_0(void)
}
-int server_get_handler(d_char *req, char *q_path,
+int server_get_handler(xs_dict *req, char *q_path,
char **body, int *b_size, char **ctype)
/* basic server services */
{
int status = 0;
+ (void)req;
+
/* is it the server root? */
if (*q_path == '\0') {
/* try to open greeting.html */
@@ -285,6 +287,8 @@ static jmp_buf on_break;
void term_handler(int s)
{
+ (void)s;
+
longjmp(on_break, 1);
}
@@ -401,6 +405,8 @@ static void *background_thread(void *arg)
{
time_t purge_time;
+ (void)arg;
+
/* first purge time */
purge_time = time(NULL) + 10 * 60;