From 023dc6798e05373bf33d64221bbe6a7265734c34 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 9 May 2008 18:07:15 +0000 Subject: fix warnings about pointer signedness --- coreutils/md5_sha1_sum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coreutils/md5_sha1_sum.c') diff --git a/coreutils/md5_sha1_sum.c b/coreutils/md5_sha1_sum.c index 2e1c96459..c81619493 100644 --- a/coreutils/md5_sha1_sum.c +++ b/coreutils/md5_sha1_sum.c @@ -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) -- cgit v1.2.3