diff options
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r-- | toxcore/tox.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c index dfafaf20..fa53e693 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -265,18 +265,18 @@ void tox_set_sends_receipts(void *tox, int friendnumber, int yesno) | |||
265 | /* Return the number of friends in the instance m. | 265 | /* Return the number of friends in the instance m. |
266 | * You should use this to determine how much memory to allocate | 266 | * You should use this to determine how much memory to allocate |
267 | * for copy_friendlist. */ | 267 | * for copy_friendlist. */ |
268 | size_t tox_count_friendlist(void *tox) | 268 | uint32_t tox_count_friendlist(void *tox) |
269 | { | 269 | { |
270 | Messenger *m = tox; | 270 | Messenger *m = tox; |
271 | return count_friendlist(m); | 271 | return count_friendlist(m); |
272 | } | 272 | } |
273 | 273 | ||
274 | /* Copy a list of valid friend IDs into the array out_list. | 274 | /* Copy a list of valid friend IDs into the array out_list. |
275 | * If out_list is NULL, returns -1. | 275 | * If out_list is NULL, returns 0. |
276 | * Otherwise, returns the number of elements copied. | 276 | * Otherwise, returns the number of elements copied. |
277 | * If the array was too small, the contents | 277 | * If the array was too small, the contents |
278 | * of out_list will be truncated to list_size. */ | 278 | * of out_list will be truncated to list_size. */ |
279 | size_t tox_copy_friendlist(void *tox, int *out_list, size_t list_size) | 279 | uint32_t tox_copy_friendlist(void *tox, int *out_list, uint32_t list_size) |
280 | { | 280 | { |
281 | Messenger *m = tox; | 281 | Messenger *m = tox; |
282 | return copy_friendlist(m, out_list, list_size); | 282 | return copy_friendlist(m, out_list, list_size); |