Upload cleanup lists func
FossilOrigin-Name: 2c93bcb9b03ff0d6d74c77bec711d3c387bbaa4b4ed9e74ed8a67378229e7d8b
This commit is contained in:
parent
3667dec9a3
commit
d750371c7e
2 changed files with 2 additions and 3 deletions
|
@ -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 */
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue