summaryrefslogtreecommitdiff
path: root/toxcore/tox.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-09-22 14:24:38 -0400
committerirungentoo <irungentoo@gmail.com>2013-09-22 14:24:38 -0400
commitba169b7c218dbec354d53181024c8e02bd061a17 (patch)
treed5ac01d23eb6c85c6a82d569a346b00e8e30efe8 /toxcore/tox.c
parent8b5d9dc13e5b5fe66f47701aec57ae7b04345be3 (diff)
Keep the code consistent.
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r--toxcore/tox.c6
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. */
268size_t tox_count_friendlist(void *tox) 268uint32_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. */
279size_t tox_copy_friendlist(void *tox, int *out_list, size_t list_size) 279uint32_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);