summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authorGravatar default2023-05-04 09:28:36 +0200
committerGravatar default2023-05-04 09:28:36 +0200
commit185aac23876f9ae5d9b613f8b9abd517c3ab3b4d (patch)
tree7d7fcf3e99f4acfa05d251a0bec86f899d4a1005 /httpd.c
parentAdded some const here and there. (diff)
downloadpenes-snac2-185aac23876f9ae5d9b613f8b9abd517c3ab3b4d.tar.gz
penes-snac2-185aac23876f9ae5d9b613f8b9abd517c3ab3b4d.tar.xz
penes-snac2-185aac23876f9ae5d9b613f8b9abd517c3ab3b4d.zip
Added -Wextra to C flags.
Diffstat (limited to 'httpd.c')
-rw-r--r--httpd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/httpd.c b/httpd.c
index 5520457..fe93727 100644
--- a/httpd.c
+++ b/httpd.c
@@ -49,6 +49,8 @@ int server_get_handler(xs_dict *req, char *q_path,
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