1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Daniel Stenberg 2008-04-09 14:04:39 +00:00
parent f617ba4a43
commit ae64d2602b
4 changed files with 30 additions and 47 deletions

View file

@ -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;
}