aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-05-04 09:25:09 +0200
committerdefault <nobody@localhost>2023-05-04 09:25:09 +0200
commit753eadfd1775545c5bfb4110ad2ba7cb61df9588 (patch)
tree84ec6b7daa8a13f63e2c5d86223858dd27365cd4 /html.c
parent511f5062b7df26c47409c88649f24d68bbd43ccb (diff)
Added some const here and there.
Diffstat (limited to 'html.c')
-rw-r--r--html.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/html.c b/html.c
index 2aa6514..3ba7930 100644
--- a/html.c
+++ b/html.c
@@ -1289,7 +1289,8 @@ xs_str *html_notifications(snac *snac)
}
-int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char **ctype)
+int html_get_handler(const xs_dict *req, const char *q_path,
+ char **body, int *b_size, char **ctype)
{
char *accept = xs_dict_get(req, "accept");
int status = 404;
@@ -1546,7 +1547,8 @@ int html_get_handler(d_char *req, char *q_path, char **body, int *b_size, char *
}
-int html_post_handler(d_char *req, char *q_path, d_char *payload, int p_size,
+int html_post_handler(const xs_dict *req, const char *q_path,
+ char *payload, int p_size,
char **body, int *b_size, char **ctype)
{
int status = 0;