mirror of
https://github.com/TokTok/c-toxcore
synced 2026-10-23 08:42:21 +00:00
Tox object doesn't need to be passed to tox_hash.
This commit is contained in:
3 files changed
+3
-3
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user