Removed warnings

This commit is contained in:
ksb 2007-11-18 12:18:59 +00:00
parent 58d442ab2f
commit 437ba5bbf4
4 changed files with 9 additions and 3 deletions

View file

@ -1,6 +1,7 @@
#include <debug-uart.h>
#include <sys/stat.h>
#include <errno.h>
#include <stdio.h>
int
_open(const char *name, int flags, int mode) {
@ -74,7 +75,7 @@ _sbrk(int incr)
prev_heap_end = heap_end;
if (heap_end + incr > &__heap_end__) {
printf("Heap full (requested %d, available %d)\n",
incr, &__heap_end__ - heap_end);
incr, (int)(&__heap_end__ - heap_end));
errno = ENOMEM;
return (caddr_t)-1;
}