Skip to content

Commit bc8e0a8

Browse files
committed
add TODOs about further constification
1 parent 9b160c6 commit bc8e0a8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

toxcore/group.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ typedef enum Groupchat_Closest {
271271

272272
static int add_to_closest(Group_Chats *g_c, uint32_t groupnumber, const uint8_t *real_pk, const uint8_t *temp_pk)
273273
{
274+
// TODO(zugz): this can be const. Similarly throughout the file.
274275
Group_c *g = get_group_c(g_c, groupnumber);
275276

276277
if (!g) {

toxcore/tox.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,7 @@ Tox_Connection tox_self_get_connection_status(const Tox *tox)
713713
{
714714
const Messenger *m = tox->m;
715715

716+
// TODO(zugz): this can be const. Similarly throughout the file.
716717
unsigned int ret = onion_connection_status(m->onion_c);
717718

718719
if (ret == 2) {

0 commit comments

Comments
 (0)