From 94d98ddd863279d5bf811d0107d73c373380dda2 Mon Sep 17 00:00:00 2001 From: iphydf Date: Sat, 14 Mar 2020 03:37:28 +0000 Subject: Standardise on having a comma at the end of enums. Most of our enums already have one. Some didn't. Tokstyle is going to require commas at the end of enumerator lists in enum definitions. --- toxcore/tox.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'toxcore/tox.c') diff --git a/toxcore/tox.c b/toxcore/tox.c index 2099a26f..b70be7a3 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c @@ -2070,7 +2070,8 @@ Tox_Conference_Type tox_conference_get_type(const Tox *tox, uint32_t conference_ return (Tox_Conference_Type)ret; } -bool tox_conference_get_id(const Tox *tox, uint32_t conference_number, uint8_t *id /* TOX_CONFERENCE_ID_SIZE bytes */) +/* id is TOX_CONFERENCE_ID_SIZE bytes */ +bool tox_conference_get_id(const Tox *tox, uint32_t conference_number, uint8_t *id) { lock(tox); bool ret = conference_get_id(tox->m->conferences_object, conference_number, id); @@ -2079,7 +2080,8 @@ bool tox_conference_get_id(const Tox *tox, uint32_t conference_number, uint8_t * } // TODO(iphydf): Delete in 0.3.0. -bool tox_conference_get_uid(const Tox *tox, uint32_t conference_number, uint8_t *uid /* TOX_CONFERENCE_ID_SIZE bytes */) +/* uid is TOX_CONFERENCE_ID_SIZE bytes */ +bool tox_conference_get_uid(const Tox *tox, uint32_t conference_number, uint8_t *uid) { return tox_conference_get_id(tox, conference_number, uid); } -- cgit v1.2.3