Fixed warnings
This commit is contained in:
parent
86d3cd422e
commit
c434fbd160
2 changed files with 2 additions and 2 deletions
|
@ -167,7 +167,7 @@ int test_multiaddr_peer_id() {
|
||||||
bytes = NULL;
|
bytes = NULL;
|
||||||
|
|
||||||
// 2. Display the resultant bytes
|
// 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);
|
fprintf(stderr, "New Bytes: %s\n", result);
|
||||||
free(result);
|
free(result);
|
||||||
result = NULL;
|
result = NULL;
|
||||||
|
|
|
@ -103,7 +103,7 @@ void vthconvert(const unsigned char* in, int in_size, unsigned char** out)
|
||||||
unsigned char *ptr = *out;
|
unsigned char *ptr = *out;
|
||||||
|
|
||||||
for (int i = 0; i < in_size; i++) {
|
for (int i = 0; i < in_size; i++) {
|
||||||
sprintf(&ptr[i * 2], "%02x", in[i]);
|
sprintf((char*)&ptr[i * 2], "%02x", in[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue