diff options
author | raj <raj@FreeBSD.org> | 2008-09-03 15:39:50 +0000 |
---|---|---|
committer | raj <raj@FreeBSD.org> | 2008-09-03 15:39:50 +0000 |
commit | c96f761ec1a0290b67e5d8a5396d883187b67221 (patch) | |
tree | 892bb1df63c93744c5e68f7e56ba2072cc220c72 /sys/boot/uboot/common | |
parent | adfbe058ec9f9187c69e93a461e063d55fe67e66 (diff) | |
download | FreeBSD-src-c96f761ec1a0290b67e5d8a5396d883187b67221.zip FreeBSD-src-c96f761ec1a0290b67e5d8a5396d883187b67221.tar.gz |
Move U-Boot compatibility library to WARNS=2 level.
Diffstat (limited to 'sys/boot/uboot/common')
-rw-r--r-- | sys/boot/uboot/common/main.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/boot/uboot/common/main.c b/sys/boot/uboot/common/main.c index 9b4379f..7498c76 100644 --- a/sys/boot/uboot/common/main.c +++ b/sys/boot/uboot/common/main.c @@ -46,8 +46,6 @@ extern char bootprog_rev[]; extern char bootprog_date[]; extern char bootprog_maker[]; -static char bootargs[128]; - extern unsigned char _etext[]; extern unsigned char _edata[]; extern unsigned char __bss_start[]; @@ -110,10 +108,8 @@ memsize(int flags) int main(void) { - char **bargv; - char *ch; - int bargc, i; struct api_signature *sig = NULL; + int i; if (!api_search_sig(&sig)) return -1; @@ -134,7 +130,7 @@ main(void) */ cons_probe(); - printf("Compatible API signature found @%x\n", sig); + printf("Compatible API signature found @%x\n", (uint32_t)sig); dump_sig(sig); dump_addr_info(); @@ -205,7 +201,8 @@ COMMAND_SET(heap, "heap", "show heap usage", command_heap); static int command_heap(int argc, char *argv[]) { - printf("heap base at %p, top at %p, used %ld\n", end, sbrk(0), + + printf("heap base at %p, top at %p, used %d\n", end, sbrk(0), sbrk(0) - end); return(CMD_OK); |