summaryrefslogtreecommitdiff
path: root/tools/creative.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-04-09 14:04:39 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-04-09 14:04:39 +0000
commitae64d2602befd5589c8c0141a6d812841fdfb232 (patch)
tree0392b8e1f9aaa5c0cb12d06d771538199edba09e /tools/creative.c
parentf617ba4a43e17fcac695be5f69cec1941834973b (diff)
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
Diffstat (limited to 'tools/creative.c')
-rw-r--r--tools/creative.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/creative.c b/tools/creative.c
index 6e0e468411..5b8f15abc0 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;
}