From ae64d2602befd5589c8c0141a6d812841fdfb232 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 9 Apr 2008 14:04:39 +0000 Subject: more code policing to stop warnings when built with -W -Wall git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17048 a1c6a512-1295-4272-9138-f99709370657 --- tools/creative.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools/creative.c') diff --git a/tools/creative.c b/tools/creative.c index 6e0e468..5b8f15a 100644 --- a/tools/creative.c +++ b/tools/creative.c @@ -52,7 +52,7 @@ extern unsigned int le2int(unsigned char* buf); static int make_ciff_file(unsigned char *inbuf, int length, unsigned char *outbuf, int device) { - char key[20]; + unsigned char key[20]; memcpy(outbuf, "FFIC", 4); int2le(length+90, &outbuf[4]); memcpy(&outbuf[8], "FNIC", 4); @@ -68,8 +68,8 @@ static int make_ciff_file(unsigned char *inbuf, int length, memcpy(&outbuf[0x98+length], "LLUN", 4); int2le(20, &outbuf[0x98+length+4]); /* Do checksum */ - hmac_sha((char *)devices[device].null, strlen(devices[device].null), - (char *)outbuf, 0x98+length, key, 20); + hmac_sha((unsigned char *)devices[device].null, strlen(devices[device].null), + outbuf, 0x98+length, key, 20); memcpy(&outbuf[0x98+length+8], key, 20); return length+0x90+0x1C+8; } -- cgit v1.1