Upload cleanup lists func

FossilOrigin-Name: 2c93bcb9b03ff0d6d74c77bec711d3c387bbaa4b4ed9e74ed8a67378229e7d8b
This commit is contained in:
nekobit 2022-06-13 06:33:54 +00:00
parent 3667dec9a3
commit d750371c7e
2 changed files with 2 additions and 3 deletions

View file

@ -94,6 +94,6 @@ int mastodont_list_remove_accounts(mastodont_t* api,
struct mstdnt_storage* storage);
// Cleanup
void mstdnt_cleanup_lists(struct mstdnt_list* lists, size_t len);
void mstdnt_cleanup_lists(struct mstdnt_list* lists);
#endif /* MASTODONT_LIST_H */

View file

@ -305,8 +305,7 @@ int mastodont_list_get_accounts(mastodont_t* data,
return mastodont_request(data, &req_args);
}
void mstdnt_cleanup_lists(struct mstdnt_list* lists, size_t len)
void mstdnt_cleanup_lists(struct mstdnt_list* lists)
{
if (!lists) return;
free(lists);
}