diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2008-04-09 14:04:39 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2008-04-09 14:04:39 +0000 |
| commit | ae64d2602befd5589c8c0141a6d812841fdfb232 (patch) | |
| tree | 0392b8e1f9aaa5c0cb12d06d771538199edba09e /tools/creative.c | |
| parent | f617ba4a43e17fcac695be5f69cec1941834973b (diff) | |
| download | rockbox-ae64d2602befd5589c8c0141a6d812841fdfb232.zip rockbox-ae64d2602befd5589c8c0141a6d812841fdfb232.tar.gz rockbox-ae64d2602befd5589c8c0141a6d812841fdfb232.tar.bz2 rockbox-ae64d2602befd5589c8c0141a6d812841fdfb232.tar.xz | |
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 '')
| -rw-r--r-- | tools/creative.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |