From d2640103649b4513d2fc4d7bbb291fa941023ebf Mon Sep 17 00:00:00 2001 From: irungentoo Date: Thu, 25 Sep 2014 07:18:44 -0400 Subject: [PATCH] Tox object doesn't need to be passed to tox_hash. --- testing/test_avatars.c | 2 +- toxcore/tox.c | 2 +- toxcore/tox.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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