diff options
Diffstat (limited to 'httpd.c')
| -rw-r--r-- | httpd.c | 8 |
1 files changed, 7 insertions, 1 deletions
| @@ -43,12 +43,14 @@ d_char *nodeinfo_2_0(void) | |||
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | 45 | ||
| 46 | int server_get_handler(d_char *req, char *q_path, | 46 | int 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 | ||
| 286 | void term_handler(int s) | 288 | void 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 | ||