diff options
-rw-r--r-- | testing/test_avatars.c | 2 | ||||
-rw-r--r-- | toxcore/tox.c | 2 | ||||
-rw-r--r-- | toxcore/tox.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/testing/test_avatars.c b/testing/test_avatars.c index 7e7cdd49..55beea67 100644 --- a/testing/test_avatars.c +++ b/testing/test_avatars.c | |||
@@ -222,7 +222,7 @@ static int load_user_avatar(Tox *tox, char *base_dir, int friendnum, | |||
222 | } | 222 | } |
223 | 223 | ||
224 | *datalen = ret; | 224 | *datalen = ret; |
225 | tox_hash(tox, hash, data, *datalen); | 225 | tox_hash(hash, data, *datalen); |
226 | 226 | ||
227 | return 0; | 227 | return 0; |
228 | } | 228 | } |
diff --git a/toxcore/tox.c b/toxcore/tox.c index 21854de4..e8ec593b 100644 --- a/toxcore/tox.c +++ b/toxcore/tox.c | |||
@@ -826,7 +826,7 @@ int tox_get_self_avatar(const Tox *tox, uint8_t *format, uint8_t *buf, uint32_t | |||
826 | return m_get_self_avatar(m, format, buf, length, maxlen, hash); | 826 | return m_get_self_avatar(m, format, buf, length, maxlen, hash); |
827 | } | 827 | } |
828 | 828 | ||
829 | int tox_hash(const Tox *tox, uint8_t *hash, const uint8_t *data, const uint32_t datalen) | 829 | int tox_hash(uint8_t *hash, const uint8_t *data, const uint32_t datalen) |
830 | { | 830 | { |
831 | return m_hash(hash, data, datalen); | 831 | return m_hash(hash, data, datalen); |
832 | } | 832 | } |
diff --git a/toxcore/tox.h b/toxcore/tox.h index d285e3fc..61cfdf70 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h | |||
@@ -625,7 +625,7 @@ int tox_get_self_avatar(const Tox *tox, uint8_t *format, uint8_t *buf, uint32_t | |||
625 | * returns 0 on success | 625 | * returns 0 on success |
626 | * returns -1 on failure. | 626 | * returns -1 on failure. |
627 | */ | 627 | */ |
628 | int tox_hash(const Tox *tox, uint8_t *hash, const uint8_t *data, const uint32_t datalen); | 628 | int tox_hash(uint8_t *hash, const uint8_t *data, const uint32_t datalen); |
629 | 629 | ||
630 | /* Request avatar information from a friend. | 630 | /* Request avatar information from a friend. |
631 | * Asks a friend to provide their avatar information (image format and hash). The friend may | 631 | * Asks a friend to provide their avatar information (image format and hash). The friend may |