Fixed warnings

This commit is contained in:
jmjatlanta 2017-07-17 16:13:53 -05:00
parent 86d3cd422e
commit c434fbd160
2 changed files with 2 additions and 2 deletions

View file

@ -167,7 +167,7 @@ int test_multiaddr_peer_id() {
bytes = NULL;
// 2. Display the resultant bytes
result = Var_To_Hex((char*)addr2->bytes, addr2->bsize);
result = (char*)Var_To_Hex((char*)addr2->bytes, addr2->bsize);
fprintf(stderr, "New Bytes: %s\n", result);
free(result);
result = NULL;

View file

@ -103,7 +103,7 @@ void vthconvert(const unsigned char* in, int in_size, unsigned char** out)
unsigned char *ptr = *out;
for (int i = 0; i < in_size; i++) {
sprintf(&ptr[i * 2], "%02x", in[i]);
sprintf((char*)&ptr[i * 2], "%02x", in[i]);
}
}