summaryrefslogtreecommitdiff
path: root/httpd.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-05-04 09:28:36 +0200
committerdefault <nobody@localhost>2023-05-04 09:28:36 +0200
commit185aac23876f9ae5d9b613f8b9abd517c3ab3b4d (patch)
tree7d7fcf3e99f4acfa05d251a0bec86f899d4a1005 /httpd.c
parent753eadfd1775545c5bfb4110ad2ba7cb61df9588 (diff)
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,
{
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;