diff options
author | iphydf <iphydf@users.noreply.github.com> | 2016-09-12 16:48:35 +0100 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2016-09-16 12:06:02 +0100 |
commit | 1494e474dde58ec6e446cdbfad9a8d89f6c4796c (patch) | |
tree | e454a18a0f61468d10833d8e80039d025f94f568 /toxcore/tox.c | |
parent | 37c041f8159f7e89f2585243e9b8073f47d77fd1 (diff) |
Ensure that all TODOs have an owner.
In the future, all TODOs added either need a bug number (TODO(#NN)) or a
person's github user name. By default, I made irungentoo the owner of
all toxcore TODOs, mannol the owner of toxav TODOs, and myself the owner
of API TODOs.
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r-- | toxcore/tox.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c index 463238b5..b9bab973 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -250,7 +250,7 @@ Tox *tox_new(const struct Tox_Options *options, TOX_ERR_NEW *error) | |||
250 | 250 | ||
251 | if (!addr_resolve_or_parse_ip(options->proxy_host, &m_options.proxy_info.ip_port.ip, NULL)) { | 251 | if (!addr_resolve_or_parse_ip(options->proxy_host, &m_options.proxy_info.ip_port.ip, NULL)) { |
252 | SET_ERROR_PARAMETER(error, TOX_ERR_NEW_PROXY_BAD_HOST); | 252 | SET_ERROR_PARAMETER(error, TOX_ERR_NEW_PROXY_BAD_HOST); |
253 | //TODO: TOX_ERR_NEW_PROXY_NOT_FOUND if domain. | 253 | // TODO(irungentoo): TOX_ERR_NEW_PROXY_NOT_FOUND if domain. |
254 | return NULL; | 254 | return NULL; |
255 | } | 255 | } |
256 | 256 | ||
@@ -527,7 +527,7 @@ bool tox_self_set_name(Tox *tox, const uint8_t *name, size_t length, TOX_ERR_SET | |||
527 | Messenger *m = tox; | 527 | Messenger *m = tox; |
528 | 528 | ||
529 | if (setname(m, name, length) == 0) { | 529 | if (setname(m, name, length) == 0) { |
530 | //TODO: function to set different per group names? | 530 | // TODO(irungentoo): function to set different per group names? |
531 | send_name_all_groups(m->group_chat_object); | 531 | send_name_all_groups(m->group_chat_object); |
532 | SET_ERROR_PARAMETER(error, TOX_ERR_SET_INFO_OK); | 532 | SET_ERROR_PARAMETER(error, TOX_ERR_SET_INFO_OK); |
533 | return 1; | 533 | return 1; |
@@ -672,7 +672,7 @@ bool tox_friend_delete(Tox *tox, uint32_t friend_number, TOX_ERR_FRIEND_DELETE * | |||
672 | Messenger *m = tox; | 672 | Messenger *m = tox; |
673 | int ret = m_delfriend(m, friend_number); | 673 | int ret = m_delfriend(m, friend_number); |
674 | 674 | ||
675 | //TODO handle if realloc fails? | 675 | // TODO(irungentoo): handle if realloc fails? |
676 | if (ret == -1) { | 676 | if (ret == -1) { |
677 | SET_ERROR_PARAMETER(error, TOX_ERR_FRIEND_DELETE_FRIEND_NOT_FOUND); | 677 | SET_ERROR_PARAMETER(error, TOX_ERR_FRIEND_DELETE_FRIEND_NOT_FOUND); |
678 | return 0; | 678 | return 0; |
@@ -749,7 +749,7 @@ void tox_self_get_friend_list(const Tox *tox, uint32_t *friend_list) | |||
749 | { | 749 | { |
750 | if (friend_list) { | 750 | if (friend_list) { |
751 | const Messenger *m = tox; | 751 | const Messenger *m = tox; |
752 | //TODO: size parameter? | 752 | // TODO(irungentoo): size parameter? |
753 | copy_friendlist(m, friend_list, tox_self_get_friend_list_size(tox)); | 753 | copy_friendlist(m, friend_list, tox_self_get_friend_list_size(tox)); |
754 | } | 754 | } |
755 | } | 755 | } |
@@ -816,7 +816,7 @@ bool tox_friend_get_status_message(const Tox *tox, uint32_t friend_number, uint8 | |||
816 | } | 816 | } |
817 | 817 | ||
818 | const Messenger *m = tox; | 818 | const Messenger *m = tox; |
819 | //TODO: size parameter? | 819 | // TODO(irungentoo): size parameter? |
820 | int ret = m_copy_statusmessage(m, friend_number, status_message, m_get_statusmessage_size(m, friend_number)); | 820 | int ret = m_copy_statusmessage(m, friend_number, status_message, m_get_statusmessage_size(m, friend_number)); |
821 | 821 | ||
822 | if (ret == -1) { | 822 | if (ret == -1) { |