fix compiler warnings (trivial)

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3882 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Stefan Reinauer 2009-01-20 21:40:16 +00:00 committed by Stefan Reinauer
parent a829bfe882
commit 9ab216023c
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ void *memcpy(void *vdest, const void *vsrc, size_t bytes)
char *dest = vdest; char *dest = vdest;
int i; int i;
for (i = 0; i < bytes; i++) for (i = 0; i < (int)bytes; i++)
dest[i] = src[i]; dest[i] = src[i];
return vdest; return vdest;

View File

@ -5,7 +5,7 @@ void *memset(void *s, int c, size_t n)
int i; int i;
char *ss = (char *) s; char *ss = (char *) s;
for (i = 0; i < n; i++) for (i = 0; i < (int)n; i++)
ss[i] = c; ss[i] = c;
return s; return s;