diff options
author | jhb <jhb@FreeBSD.org> | 2006-09-29 20:07:16 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2006-09-29 20:07:16 +0000 |
commit | 4a28927c3ca9a49b9c7ab58cbde66a330eadf736 (patch) | |
tree | 9a784eb84d1b2288bd7e37548a6237036e4f8d09 /sys/boot | |
parent | 081fcce9b95f3f51e2b600db9d0026f3ecfadc23 (diff) | |
download | FreeBSD-src-4a28927c3ca9a49b9c7ab58cbde66a330eadf736.zip FreeBSD-src-4a28927c3ca9a49b9c7ab58cbde66a330eadf736.tar.gz |
Oops, add return values for the smap command function. We must have the
warnings set weird or something because gcc didn't warn about this at all.
Submitted by: ru
Diffstat (limited to 'sys/boot')
-rw-r--r-- | sys/boot/i386/libi386/biossmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/boot/i386/libi386/biossmap.c b/sys/boot/i386/libi386/biossmap.c index 056bc22..6f75b27 100644 --- a/sys/boot/i386/libi386/biossmap.c +++ b/sys/boot/i386/libi386/biossmap.c @@ -115,8 +115,9 @@ command_smap(int argc, char *argv[]) int i; if (smapbase == 0 || smaplen == 0) - return; + return (CMD_ERROR); for (i = 0; i < smaplen; i++) printf("SMAP type=%02x base=%016llx len=%016llx\n", smapbase[i].type, smapbase[i].base, smapbase[i].length); + return (CMD_OK); } |