diff options
author | dfr <dfr@FreeBSD.org> | 1999-03-28 17:33:38 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1999-03-28 17:33:38 +0000 |
commit | 6e2c0237461ccd3db2c08c4a13ffb002ce0bad51 (patch) | |
tree | fc8e72074085340ac266e4d9b82f6afd0862904f /sys/alpha | |
parent | d879689981db42fd4cb43b8fbf4f10df939c8785 (diff) | |
download | FreeBSD-src-6e2c0237461ccd3db2c08c4a13ffb002ce0bad51.zip FreeBSD-src-6e2c0237461ccd3db2c08c4a13ffb002ce0bad51.tar.gz |
Fix a few warnings.
Diffstat (limited to 'sys/alpha')
-rw-r--r-- | sys/alpha/alpha/autoconf.c | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/sys/alpha/alpha/autoconf.c b/sys/alpha/alpha/autoconf.c index cf5ae09..da47473 100644 --- a/sys/alpha/alpha/autoconf.c +++ b/sys/alpha/alpha/autoconf.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: autoconf.c,v 1.13 1999/01/20 19:22:24 peter Exp $ + * $Id: autoconf.c,v 1.14 1999/03/12 14:44:46 gallatin Exp $ */ #include "opt_bootp.h" @@ -120,15 +120,23 @@ bootdev_protocol(void) } static int -bootdev_bus(void) +bootdev_slot(void) { - return atoi(bootdev_field(1)); + return atoi(bootdev_field(2)); } static int -bootdev_slot(void) +bootdev_unit(void) { - return atoi(bootdev_field(2)); + return atoi(bootdev_field(5)); +} + +#if 0 + +static int +bootdev_bus(void) +{ + return atoi(bootdev_field(1)); } static int @@ -144,12 +152,6 @@ bootdev_remote_address(void) } static int -bootdev_unit(void) -{ - return atoi(bootdev_field(5)); -} - -static int bootdev_boot_dev_type(void) { return atoi(bootdev_field(6)); @@ -161,6 +163,8 @@ bootdev_ctrl_dev_type(void) return bootdev_field(7); } +#endif + void alpha_register_pci_scsi(int bus, int slot, struct cam_sim *sim) { |