Tox object doesn't need to be passed to tox_hash.

This commit is contained in:
irungentoo 2014-09-25 07:18:44 -04:00
parent 80fdfbad07
commit d264010364
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98
3 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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);
}

View File

@ -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