Minor fixes to libp2p

This commit is contained in:
John Jones 2017-03-06 19:04:14 -05:00
parent d4fee344a7
commit cd5d347e63
5 changed files with 6 additions and 6 deletions

View file

@ -129,7 +129,7 @@ int ipfs_blocks_block_new(struct Block** block) {
int ipfs_blocks_block_add_data(const unsigned char* data, size_t data_size, struct Block* block) {
// cid
unsigned char hash[32];
if (libp2p_crypto_hashing_sha256((char*)data, data_size, &hash[0]) == 0) {
if (libp2p_crypto_hashing_sha256(data, data_size, &hash[0]) == 0) {
return 0;
}