Skip to content

Commit

Permalink
add TODOs about further constification
Browse files Browse the repository at this point in the history
  • Loading branch information
zugz committed Nov 29, 2018
1 parent ed17cc4 commit 2ae0f65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions toxcore/group.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ typedef enum Groupchat_Closest {

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

if (!g) {
Expand Down
1 change: 1 addition & 0 deletions toxcore/tox.c
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,7 @@ Tox_Connection tox_self_get_connection_status(const Tox *tox)
{
const Messenger *m = tox->m;

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

if (ret == 2) {
Expand Down

0 comments on commit 2ae0f65

Please sign in to comment.