diff --git a/src/lib/libc_old/stdlib/malloc.c b/src/lib/libc_old/stdlib/malloc.c index 468f5fe..4740ad4 100644 --- a/src/lib/libc_old/stdlib/malloc.c +++ b/src/lib/libc_old/stdlib/malloc.c @@ -30,6 +30,7 @@ #include #include #include +#include struct memDescriptor { struct memDescriptor *prev; //4 @@ -135,7 +136,7 @@ } buf = (char *)tmpDesc1->baseAddr; for (i=0;ilimit;i++) { - (char)buf[i] = (char)0x0; + buf[i] = 0x0; } //printf("baseAddr1[0x%X:0x%X]",tmpDesc1,tmpDesc1->baseAddr); @@ -165,7 +166,7 @@ } buf = (char *)tmpDesc1->baseAddr; for (i=0;ilimit;i++) { - (char)buf[i] = (char)0x0; + buf[i] = 0x0; } //printf("baseAddr2[0x%X:0x%X]",tmpDesc1,tmpDesc1->baseAddr); @@ -235,7 +236,7 @@ ************************************************************************/ static int insertFreeDesc(struct memDescriptor *freeDesc) { - struct memDescriptor *tmpDesc = 0x0; + //struct memDescriptor *tmpDesc = 0x0; if (freeDesc->limit <= 0x0) { printf("Inserting Descriptor with no limit\n"); @@ -285,6 +286,9 @@ /*** $Log$ + Revision 1.7 2004/10/02 12:58:38 reddawg + weird... + Revision 1.6 2004/09/29 22:30:52 reddawg hmm permission error