fix size_t and memory types. We need to be careful, because gcc

calls memcpy etc itself. This is trivial (not easy), as it is just
reading man pages.

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



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@308 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Stefan Reinauer 2007-05-05 16:56:34 +00:00
commit 109adc1598
5 changed files with 21 additions and 17 deletions

View file

@ -24,13 +24,13 @@
#include <arch/types.h>
/* Prototypes for functions from lib/mem.c. */
extern void *memcpy(void *dest, const void *src, size_t len);
extern void *memmove(void *dest, const void *src, size_t len);
extern void *memset(void *v, unsigned char a, size_t len);
extern int memcmp(const void *s1, const void *s2, size_t len);
void *memcpy(void *dest, const void *src, size_t len);
void *memmove(void *dest, const void *src, size_t len);
void *memset(void *s, int c, size_t len);
int memcmp(const void *s1, const void *s2, size_t len);
/* Prototypes for functions from console/vsprintf.c. */
extern int sprintf(char *buf, const char *fmt, ...);
int sprintf(char *buf, const char *fmt, ...);
/**
* Calculate the length of a fixed-size string.