diff options
| author | 2023-07-13 17:58:18 +0200 | |
|---|---|---|
| committer | 2023-07-13 17:58:18 +0200 | |
| commit | 137f7756059bfcbf74ff551e72f2210e4e77789f (patch) | |
| tree | 5d4e3e7d24302757bc3a166359326aa933717335 /activitypub.c | |
| parent | Version 2.37 RELEASED. (diff) | |
| download | snac2-137f7756059bfcbf74ff551e72f2210e4e77789f.tar.gz snac2-137f7756059bfcbf74ff551e72f2210e4e77789f.tar.xz snac2-137f7756059bfcbf74ff551e72f2210e4e77789f.zip | |
Minor prototype tweak.
Diffstat (limited to 'activitypub.c')
| -rw-r--r-- | activitypub.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/activitypub.c b/activitypub.c index 9fe293c..e871c8d 100644 --- a/activitypub.c +++ b/activitypub.c | |||
| @@ -296,7 +296,7 @@ int send_to_inbox(snac *snac, const xs_str *inbox, const xs_dict *msg, | |||
| 296 | } | 296 | } |
| 297 | 297 | ||
| 298 | 298 | ||
| 299 | d_char *get_actor_inbox(snac *snac, const char *actor) | 299 | xs_str *get_actor_inbox(snac *snac, const char *actor) |
| 300 | /* gets an actor's inbox */ | 300 | /* gets an actor's inbox */ |
| 301 | { | 301 | { |
| 302 | xs *data = NULL; | 302 | xs *data = NULL; |
| @@ -316,7 +316,8 @@ d_char *get_actor_inbox(snac *snac, const char *actor) | |||
| 316 | } | 316 | } |
| 317 | 317 | ||
| 318 | 318 | ||
| 319 | int send_to_actor(snac *snac, char *actor, char *msg, d_char **payload, int *p_size, int timeout) | 319 | int send_to_actor(snac *snac, const char *actor, const char *msg, |
| 320 | xs_val **payload, int *p_size, int timeout) | ||
| 320 | /* sends a message to an actor */ | 321 | /* sends a message to an actor */ |
| 321 | { | 322 | { |
| 322 | int status = 400; | 323 | int status = 400; |