Minor mistakes

FossilOrigin-Name: 2f750eff26f428ca3bc754d50e9b9eb83253185b3b49855d39759bf516f8704f
This commit is contained in:
me@ow.nekobit.net 2022-03-18 23:20:19 +00:00
parent 151fd8ff0d
commit 8afe52017c
3 changed files with 5 additions and 4 deletions

View file

@ -30,6 +30,6 @@
#define MSTDNT_NOTIFICATION_CHAT_MENTION (1<<8)
#define MSTDNT_NOTIFICATION_REPORT (1<<9)
typedef mstdnt_notification_t uint16_t;
typedef uint16_t mstdnt_notification_t;
#endif /* MASTODONT_NOTIF_TYPES */

View file

@ -25,6 +25,6 @@
#define MSTDNT_VISIBILITY_LIST (1<<4)
#define MSTDNT_VISIBILITY_LOCAL (1<<5)
typedef mstdnt_visibility_t uint8_t;
typedef uint8_t mstdnt_visibility_t;
#endif /* MASTODONT_VISIBILITY_TYPES_H */

View file

@ -19,6 +19,7 @@
#include <mastodont_fetch.h>
#include <mastodont_json_helper.h>
#include <mastodont_query.h>
#include <mastodont_request.h>
static void _mstdnt_val_notif_type_call(cJSON* v, void* _type)
{
@ -82,7 +83,7 @@ int mstdnt_notifications_from_result(struct mstdnt_fetch_results* results,
cJSON_ArrayForEach(notif_j_list, root)
{
mstdnt_status_from_json((*notif) + i++, notif_j_list->child);
mstdnt_notification_from_json((*notif) + i++, notif_j_list->child);
}
return 0;
@ -103,7 +104,7 @@ int mastodont_get_notifications(mastodont_t* data,
struct mstdnt_notification** notifs,
size_t* size)
{
struct _mstdnt_statuses_cb_args cb_args = { statuses, size };
struct _mstdnt_notifications_result_cb_args cb_args = { notifs, size };
union param_value u_exclude_types, u_account_id, u_exclude_visibilities,
u_include_types, u_with_muted, u_max_id, u_min_id,