diff options
| author | 2023-05-04 09:25:09 +0200 | |
|---|---|---|
| committer | 2023-05-04 09:25:09 +0200 | |
| commit | 753eadfd1775545c5bfb4110ad2ba7cb61df9588 (patch) | |
| tree | 84ec6b7daa8a13f63e2c5d86223858dd27365cd4 /html.c | |
| parent | Deleted real unused parameters. (diff) | |
| download | snac2-753eadfd1775545c5bfb4110ad2ba7cb61df9588.tar.gz snac2-753eadfd1775545c5bfb4110ad2ba7cb61df9588.tar.xz snac2-753eadfd1775545c5bfb4110ad2ba7cb61df9588.zip | |
Added some const here and there.
Diffstat (limited to 'html.c')
| -rw-r--r-- | html.c | 6 |
1 files changed, 4 insertions, 2 deletions
| @@ -1289,7 +1289,8 @@ xs_str *html_notifications(snac *snac) | |||
| 1289 | } | 1289 | } |
| 1290 | 1290 | ||
| 1291 | 1291 | ||
| 1292 | int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char **ctype) | 1292 | int html_get_handler(const xs_dict *req, const char *q_path, |
| 1293 | char **body, int *b_size, char **ctype) | ||
| 1293 | { | 1294 | { |
| 1294 | char *accept = xs_dict_get(req, "accept"); | 1295 | char *accept = xs_dict_get(req, "accept"); |
| 1295 | int status = 404; | 1296 | int status = 404; |
| @@ -1546,7 +1547,8 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char * | |||
| 1546 | } | 1547 | } |
| 1547 | 1548 | ||
| 1548 | 1549 | ||
| 1549 | int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size, | 1550 | int html_post_handler(const xs_dict *req, const char *q_path, |
| 1551 | char *payload, int p_size, | ||
| 1550 | char **body, int *b_size, char **ctype) | 1552 | char **body, int *b_size, char **ctype) |
| 1551 | { | 1553 | { |
| 1552 | int status = 0; | 1554 | int status = 0; |