Fixed some compiler warnings

This commit is contained in:
John Jones 2017-02-13 05:34:56 -05:00
parent 0522bedd2a
commit c972852c9a
5 changed files with 5 additions and 4 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(data, data_size, &hash[0]) == 0) {
if (libp2p_crypto_hashing_sha256((char*)data, data_size, &hash[0]) == 0) {
return 0;
}