diff options
author | trasz <trasz@FreeBSD.org> | 2012-11-19 01:15:32 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2012-11-19 01:15:32 +0000 |
commit | c79d634c53f26f314c0a8759efb37e70e644e45f (patch) | |
tree | 96ed2cc897e6c59433bd8df7a0cc1034cfa95ae4 /sys/boot/powerpc | |
parent | ac4c101d0c9ebeaaf53e0878e5fe6518b071950e (diff) | |
download | FreeBSD-src-c79d634c53f26f314c0a8759efb37e70e644e45f.zip FreeBSD-src-c79d634c53f26f314c0a8759efb37e70e644e45f.tar.gz |
Fix build on powerpc.
Reviewed by: nwhitehorn
Diffstat (limited to 'sys/boot/powerpc')
-rw-r--r-- | sys/boot/powerpc/boot1.chrp/boot1.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/boot/powerpc/boot1.chrp/boot1.c b/sys/boot/powerpc/boot1.chrp/boot1.c index ff99ce6..30e695b 100644 --- a/sys/boot/powerpc/boot1.chrp/boot1.c +++ b/sys/boot/powerpc/boot1.chrp/boot1.c @@ -61,7 +61,7 @@ static void usage(void); static void bcopy(const void *src, void *dst, size_t len); static void bzero(void *b, size_t len); -static int mount(const char *device, int quiet); +static int domount(const char *device, int quiet); static void panic(const char *fmt, ...) __dead2; static int printf(const char *fmt, ...); @@ -431,7 +431,7 @@ main(int ac, char **av) bootpath_full[len+2] = '\0'; } - if (mount(bootpath_full,1) >= 0) + if (domount(bootpath_full,1) >= 0) break; if (bootdev > 0) @@ -439,10 +439,10 @@ main(int ac, char **av) } if (i >= 16) - panic("mount"); + panic("domount"); } else { - if (mount(bootpath_full,0) == -1) - panic("mount"); + if (domount(bootpath_full,0) == -1) + panic("domount"); } printf(" Boot volume: %s\n",bootpath_full); @@ -469,17 +469,17 @@ exit(int code) static struct dmadat __dmadat; static int -mount(const char *device, int quiet) +domount(const char *device, int quiet) { dmadat = &__dmadat; if ((bootdev = ofw_open(device)) == -1) { - printf("mount: can't open device\n"); + printf("domount: can't open device\n"); return (-1); } if (fsread(0, NULL, 0)) { if (!quiet) - printf("mount: can't read superblock\n"); + printf("domount: can't read superblock\n"); return (-1); } return (0); |