fix warnings about pointer signedness
This commit is contained in:
@@ -21,7 +21,7 @@ static unsigned char *hash_bin_to_hex(unsigned char *hash_value,
|
||||
/* xzalloc zero-terminates */
|
||||
char *hex_value = xzalloc((hash_length * 2) + 1);
|
||||
bin2hex(hex_value, (char*)hash_value, hash_length);
|
||||
return hex_value;
|
||||
return (unsigned char *)hex_value;
|
||||
}
|
||||
|
||||
static uint8_t *hash_file(const char *filename, hash_algo_t hash_algo)
|
||||
|
Reference in New Issue
Block a user