diff --git a/tools/sdk/ksdk1.1.0/platform/utilities/src/fsl_misc_utilities.c b/tools/sdk/ksdk1.1.0/platform/utilities/src/fsl_misc_utilities.c index 6dd6f209b..ef197f9fc 100755 --- a/tools/sdk/ksdk1.1.0/platform/utilities/src/fsl_misc_utilities.c +++ b/tools/sdk/ksdk1.1.0/platform/utilities/src/fsl_misc_utilities.c @@ -68,7 +68,7 @@ int _isatty (int fd) #endif #if (defined(__GNUC__) && (!defined(KDS)) && (!defined(ATOLLIC))) -caddr_t +void * _sbrk (int incr) { extern char end asm ("end"); @@ -84,12 +84,12 @@ _sbrk (int incr) if (heap_end + incr > &heap_limit) { errno = ENOMEM; - return (caddr_t) -1; + return (void *) -1; } heap_end += incr; - return (caddr_t) prev_heap_end; + return (void *) prev_heap_end; } #endif diff --git a/tools/sdk/ksdk1.1.0/platform/utilities/src/syscalls.c b/tools/sdk/ksdk1.1.0/platform/utilities/src/syscalls.c index 488a721d3..b9db05064 100755 --- a/tools/sdk/ksdk1.1.0/platform/utilities/src/syscalls.c +++ b/tools/sdk/ksdk1.1.0/platform/utilities/src/syscalls.c @@ -77,7 +77,7 @@ int _write(int32_t file, uint8_t *ptr, int32_t len) return len; } -caddr_t _sbrk(int32_t incr) +void * _sbrk(int32_t incr) { extern uint8_t end asm("end"); static uint8_t *heap_end; @@ -93,12 +93,12 @@ caddr_t _sbrk(int32_t incr) // write(1, "Heap and stack collision\n", 25); // abort(); errno = ENOMEM; - return (caddr_t) -1; + return (void *) -1; } heap_end += incr; - return (caddr_t) prev_heap_end; + return (void *) prev_heap_end; } int _close(int32_t file)