summaryrefslogtreecommitdiff
path: root/activitypub.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 /activitypub.c
parent511f5062b7df26c47409c88649f24d68bbd43ccb (diff)
Added some const here and there.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/activitypub.c b/activitypub.c
index 13b1ce2..86d33df 100644
--- a/activitypub.c
+++ b/activitypub.c
@@ -1426,7 +1426,7 @@ int process_queue(void)
/** HTTP handlers */
-int activitypub_get_handler(d_char *req, char *q_path,
+int activitypub_get_handler(const xs_dict *req, const char *q_path,
char **body, int *b_size, char **ctype)
{
int status = 200;
@@ -1519,8 +1519,8 @@ int activitypub_get_handler(d_char *req, char *q_path,
}
-int activitypub_post_handler(d_char *req, char *q_path,
- d_char *payload, int p_size,
+int activitypub_post_handler(const xs_dict *req, const char *q_path,
+ char *payload, int p_size,
char **body, int *b_size, char **ctype)
/* processes an input message */
{