summaryrefslogtreecommitdiff
path: root/sys/dev/mii/mii_physubr.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2007-09-17 17:34:23 +0000
committerBrad Smith <brad@cvs.openbsd.org>2007-09-17 17:34:23 +0000
commit1c27baa68a04273c33ad33b1f0bd02451d148bb9 (patch)
treeddc66f8506960d2096fc6cb33fd14dc06dfabd81 /sys/dev/mii/mii_physubr.c
parentc1f478363d8a072b5d3942b0da9b32ebeefc1ab4 (diff)
- Use a 64-bit int for the baudrate within the ifmedia_baudrate struct and
return a 64-bit int for ifmedia_baudrate(). - Fix consumers of ifmedia_baudrate() to deal with the change. ok claudio@ dlg@
Diffstat (limited to 'sys/dev/mii/mii_physubr.c')
-rw-r--r--sys/dev/mii/mii_physubr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/mii/mii_physubr.c b/sys/dev/mii/mii_physubr.c
index 1d41aec4c65..8caebf80e1c 100644
--- a/sys/dev/mii/mii_physubr.c
+++ b/sys/dev/mii/mii_physubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mii_physubr.c,v 1.32 2007/02/10 22:36:18 kettenis Exp $ */
+/* $OpenBSD: mii_physubr.c,v 1.33 2007/09/17 17:34:22 brad Exp $ */
/* $NetBSD: mii_physubr.c,v 1.20 2001/04/13 23:30:09 thorpej Exp $ */
/*-
@@ -362,7 +362,8 @@ mii_phy_statusmsg(struct mii_softc *sc)
{
struct mii_data *mii = sc->mii_pdata;
struct ifnet *ifp = mii->mii_ifp;
- int baudrate, link_state, announce = 0;
+ u_int64_t baudrate;
+ int link_state, announce = 0;
if (mii->mii_media_status & IFM_AVALID) {
if (mii->mii_media_status & IFM_ACTIVE) {