diff --git a/testing/test_avatars.c b/testing/test_avatars.c index 7e7cdd492..55beea672 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, } *datalen = ret; - tox_hash(tox, hash, data, *datalen); + tox_hash(hash, data, *datalen); return 0; } diff --git a/toxcore/tox.c b/toxcore/tox.c index 21854de4e..e8ec593bc 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 return m_get_self_avatar(m, format, buf, length, maxlen, hash); } -int tox_hash(const Tox *tox, uint8_t *hash, const uint8_t *data, const uint32_t datalen) +int tox_hash(uint8_t *hash, const uint8_t *data, const uint32_t datalen) { return m_hash(hash, data, datalen); } diff --git a/toxcore/tox.h b/toxcore/tox.h index d285e3fcd..61cfdf709 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 * returns 0 on success * returns -1 on failure. */ -int tox_hash(const Tox *tox, uint8_t *hash, const uint8_t *data, const uint32_t datalen); +int tox_hash(uint8_t *hash, const uint8_t *data, const uint32_t datalen); /* Request avatar information from a friend. * Asks a friend to provide their avatar information (image format and hash). The friend may