summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authorGravatar poesty2023-05-07 07:27:24 +0000
committerGravatar poesty2023-05-07 07:27:24 +0000
commite65760a349112abce39404ca50f6bc2f1301bed9 (patch)
treec2484af8006961d95dcf39cf16c3749100a713c9 /httpd.c
parentFixed webfinger and curl issues (diff)
parentVersion 2.30 RELEASED. (diff)
downloadsnac2-e65760a349112abce39404ca50f6bc2f1301bed9.tar.gz
snac2-e65760a349112abce39404ca50f6bc2f1301bed9.tar.xz
snac2-e65760a349112abce39404ca50f6bc2f1301bed9.zip
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)
43} 43}
44 44
45 45
46int server_get_handler(d_char *req, char *q_path, 46int server_get_handler(xs_dict *req, char *q_path,
47 char **body, int *b_size, char **ctype) 47 char **body, int *b_size, char **ctype)
48/* basic server services */ 48/* basic server services */
49{ 49{
50 int status = 0; 50 int status = 0;
51 51
52 (void)req;
53
52 /* is it the server root? */ 54 /* is it the server root? */
53 if (*q_path == '\0') { 55 if (*q_path == '\0') {
54 /* try to open greeting.html */ 56 /* try to open greeting.html */
@@ -285,6 +287,8 @@ static jmp_buf on_break;
285 287
286void term_handler(int s) 288void term_handler(int s)
287{ 289{
290 (void)s;
291
288 longjmp(on_break, 1); 292 longjmp(on_break, 1);
289} 293}
290 294
@@ -401,6 +405,8 @@ static void *background_thread(void *arg)
401{ 405{
402 time_t purge_time; 406 time_t purge_time;
403 407
408 (void)arg;
409
404 /* first purge time */ 410 /* first purge time */
405 purge_time = time(NULL) + 10 * 60; 411 purge_time = time(NULL) + 10 * 60;
406 412