From b6db1dba9ac1c511a2697837e2d119bd2aef39a2 Mon Sep 17 00:00:00 2001 From: iphydf Date: Sun, 18 Sep 2016 11:27:14 +0100 Subject: [PATCH] Make internal chat list function take uint32_t* as well. The public one already does this, and the internal one actually assigns `uint32_t`s. --- toxcore/group.c | 2 +- toxcore/group.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/toxcore/group.c b/toxcore/group.c index b03dd6ed..6f49175c 100644 --- a/toxcore/group.c +++ b/toxcore/group.c @@ -2510,7 +2510,7 @@ uint32_t count_chatlist(Group_Chats *g_c) * Otherwise, returns the number of elements copied. * If the array was too small, the contents * of out_list will be truncated to list_size. */ -uint32_t copy_chatlist(Group_Chats *g_c, int32_t *out_list, uint32_t list_size) +uint32_t copy_chatlist(Group_Chats *g_c, uint32_t *out_list, uint32_t list_size) { if (!out_list) { return 0; diff --git a/toxcore/group.h b/toxcore/group.h index fc7629f3..7e7d7050 100644 --- a/toxcore/group.h +++ b/toxcore/group.h @@ -321,7 +321,7 @@ uint32_t count_chatlist(Group_Chats *g_c); * Otherwise, returns the number of elements copied. * If the array was too small, the contents * of out_list will be truncated to list_size. */ -uint32_t copy_chatlist(Group_Chats *g_c, int32_t *out_list, uint32_t list_size); +uint32_t copy_chatlist(Group_Chats *g_c, uint32_t *out_list, uint32_t list_size); /* return the type of groupchat (GROUPCHAT_TYPE_) that groupnumber is. *