From 05684e236f36913d5e8cdc2fab3a5d0b71ff4b92 Mon Sep 17 00:00:00 2001 From: "me@ow.nekobit.net" Date: Mon, 4 Apr 2022 21:40:01 +0000 Subject: [PATCH] Compile fix FossilOrigin-Name: 51aafcb7d95339b3fdeb27bfc69a5e8bcc1633f7623a5a2fa3409ab0c57cc34c --- include/mastodont_relationship.h | 1 + src/relationship.c | 8 +++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/mastodont_relationship.h b/include/mastodont_relationship.h index 3962b12..09a91c0 100644 --- a/include/mastodont_relationship.h +++ b/include/mastodont_relationship.h @@ -16,6 +16,7 @@ #ifndef MASTODONT_RELATIONSHIP_H #define MASTODONT_RELATIONSHIP_H #include +#include struct mstdnt_relationship { diff --git a/src/relationship.c b/src/relationship.c index 9b846be..ab64230 100644 --- a/src/relationship.c +++ b/src/relationship.c @@ -14,11 +14,10 @@ */ #include -#include struct _mstdnt_relationships_cb_args { - struct mstdnt_relationship* relationships; + struct mstdnt_relationship** relationships; size_t* size; }; @@ -34,8 +33,7 @@ int _mstdnt_relationships_result_callback(struct mstdnt_fetch_results* results, void* _args) { struct _mstdnt_relationships_cb_args* args = _args; - return mstdnt_relationships_result(storage, results, args->relationships, args->size); - // TODO here + return mstdnt_relationships_result(results, storage, args->relationships, args->size); } int mastodont_get_relationships(mastodont_t* data, @@ -54,7 +52,7 @@ int mastodont_get_relationships(mastodont_t* data, NULL, 0, NULL, 0, /* params, _mstdnt_arr_len(params), */ - CURLOPT_GET, + CURLOPT_HTTPGET, &cb_args, _mstdnt_relationships_result_callback, /* TODO populate the status back? * (not sure if the api returns it or not) */