1
0
Fork 0
forked from len0rd/rockbox

realloc takes a void * as first argument

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@722 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2002-05-27 07:25:30 +00:00
parent 63ab180d3c
commit 5f482edaf3

View file

@ -551,7 +551,7 @@ void free(void *memp)
* *
**************************************************************************/ **************************************************************************/
void *realloc(char *ptr, size_t size) void *realloc(void *ptr, size_t size)
{ {
struct MemInfo *meminfo = (struct MemInfo *) struct MemInfo *meminfo = (struct MemInfo *)
((char *)ptr- sizeof(struct MemInfo)); ((char *)ptr- sizeof(struct MemInfo));