From ba169b7c218dbec354d53181024c8e02bd061a17 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sun, 22 Sep 2013 14:24:38 -0400 Subject: Keep the code consistent. --- toxcore/tox.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'toxcore/tox.c') 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) /* Return the number of friends in the instance m. * You should use this to determine how much memory to allocate * for copy_friendlist. */ -size_t tox_count_friendlist(void *tox) +uint32_t tox_count_friendlist(void *tox) { Messenger *m = tox; return count_friendlist(m); } /* Copy a list of valid friend IDs into the array out_list. - * If out_list is NULL, returns -1. + * If out_list is NULL, returns 0. * Otherwise, returns the number of elements copied. * If the array was too small, the contents * of out_list will be truncated to list_size. */ -size_t tox_copy_friendlist(void *tox, int *out_list, size_t list_size) +uint32_t tox_copy_friendlist(void *tox, int *out_list, uint32_t list_size) { Messenger *m = tox; return copy_friendlist(m, out_list, list_size); -- cgit v1.2.3