diff options
Diffstat (limited to 'toxcore')
-rw-r--r-- | toxcore/Messenger.c | 2 | ||||
-rw-r--r-- | toxcore/Messenger.h | 2 | ||||
-rw-r--r-- | toxcore/tox.c | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index 292ed990..42c8544a 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c | |||
@@ -632,7 +632,7 @@ int m_set_usertyping(Messenger *m, int friendnumber, uint8_t is_typing) | |||
632 | return 0; | 632 | return 0; |
633 | } | 633 | } |
634 | 634 | ||
635 | uint8_t m_get_istyping(Messenger *m, int friendnumber) | 635 | int m_get_istyping(Messenger *m, int friendnumber) |
636 | { | 636 | { |
637 | if (friend_not_valid(m, friendnumber)) | 637 | if (friend_not_valid(m, friendnumber)) |
638 | return -1; | 638 | return -1; |
diff --git a/toxcore/Messenger.h b/toxcore/Messenger.h index 42f0738c..d931dfb5 100644 --- a/toxcore/Messenger.h +++ b/toxcore/Messenger.h | |||
@@ -417,7 +417,7 @@ int m_set_usertyping(Messenger *m, int friendnumber, uint8_t is_typing); | |||
417 | * returns 0 if friend is not typing. | 417 | * returns 0 if friend is not typing. |
418 | * returns 1 if friend is typing. | 418 | * returns 1 if friend is typing. |
419 | */ | 419 | */ |
420 | uint8_t m_get_istyping(Messenger *m, int friendnumber); | 420 | int m_get_istyping(Messenger *m, int friendnumber); |
421 | 421 | ||
422 | /* Sets whether we send read receipts for friendnumber. | 422 | /* Sets whether we send read receipts for friendnumber. |
423 | * This function is not lazy, and it will fail if yesno is not (0 or 1). | 423 | * This function is not lazy, and it will fail if yesno is not (0 or 1). |
diff --git a/toxcore/tox.c b/toxcore/tox.c index 362724fc..8ec98cc8 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -279,7 +279,7 @@ TOX_USERSTATUS tox_get_self_user_status(Tox *tox) | |||
279 | int tox_set_user_is_typing(Tox *tox, int friendnumber, uint8_t is_typing) | 279 | int tox_set_user_is_typing(Tox *tox, int friendnumber, uint8_t is_typing) |
280 | { | 280 | { |
281 | Messenger *m = tox; | 281 | Messenger *m = tox; |
282 | return (int)m_set_usertyping(m, friendnumber, is_typing); | 282 | return m_set_usertyping(m, friendnumber, is_typing); |
283 | } | 283 | } |
284 | 284 | ||
285 | /* Get the typing status of a friend. | 285 | /* Get the typing status of a friend. |
@@ -290,7 +290,7 @@ int tox_set_user_is_typing(Tox *tox, int friendnumber, uint8_t is_typing) | |||
290 | int tox_get_is_typing(Tox *tox, int friendnumber) | 290 | int tox_get_is_typing(Tox *tox, int friendnumber) |
291 | { | 291 | { |
292 | Messenger *m = tox; | 292 | Messenger *m = tox; |
293 | return (int)m_get_istyping(m, friendnumber); | 293 | return m_get_istyping(m, friendnumber); |
294 | } | 294 | } |
295 | 295 | ||
296 | 296 | ||