diff options
author | obrien <obrien@FreeBSD.org> | 2008-03-13 17:54:21 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2008-03-13 17:54:21 +0000 |
commit | d0848f449cfa552b05c30bcc6e51bc6139c3686e (patch) | |
tree | 0e709adb4347c9e9718297e045714dd2d55024ee /sys/boot/uboot/common | |
parent | 3c1f420f6a964912961c71b20d47aa0ffb53c13d (diff) | |
download | FreeBSD-src-d0848f449cfa552b05c30bcc6e51bc6139c3686e.zip FreeBSD-src-d0848f449cfa552b05c30bcc6e51bc6139c3686e.tar.gz |
style(9) & style.Makefile(9)
Reviewed by: raj
Diffstat (limited to 'sys/boot/uboot/common')
-rw-r--r-- | sys/boot/uboot/common/main.c | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/sys/boot/uboot/common/main.c b/sys/boot/uboot/common/main.c index 762c6ce..9b4379f 100644 --- a/sys/boot/uboot/common/main.c +++ b/sys/boot/uboot/common/main.c @@ -110,11 +110,9 @@ memsize(int flags) int main(void) { - int i; - char *ch; - int bargc; - char **bargv; - + char **bargv; + char *ch; + int bargc, i; struct api_signature *sig = NULL; if (!api_search_sig(&sig)) @@ -172,7 +170,8 @@ main(void) /* XXX only support netbooting for now */ for (i = 0; devsw[i] != NULL; i++) - if (strncmp(devsw[i]->dv_name, "net", strlen(devsw[i]->dv_name)) == 0) + if (strncmp(devsw[i]->dv_name, "net", + strlen(devsw[i]->dv_name)) == 0) break; if (devsw[i] == NULL) @@ -183,9 +182,9 @@ main(void) currdev.d_unit = 0; env_setenv("currdev", EV_VOLATILE, uboot_fmtdev(&currdev), - uboot_setcurrdev, env_nounset); + uboot_setcurrdev, env_nounset); env_setenv("loaddev", EV_VOLATILE, uboot_fmtdev(&currdev), - env_noset, env_nounset); + env_noset, env_nounset); setenv("LINES", "24", 1); /* optional */ setenv("prompt", "loader>", 1); @@ -207,7 +206,7 @@ static int command_heap(int argc, char *argv[]) { printf("heap base at %p, top at %p, used %ld\n", end, sbrk(0), - sbrk(0) - end); + sbrk(0) - end); return(CMD_OK); } |