summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_art.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/pci/if_art.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/pci/if_art.c')
-rw-r--r--sys/dev/pci/if_art.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/pci/if_art.c b/sys/dev/pci/if_art.c
index 6f2484c29f5..558a283212d 100644
--- a/sys/dev/pci/if_art.c
+++ b/sys/dev/pci/if_art.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_art.c,v 1.13 2006/01/26 16:51:00 claudio Exp $ */
+/* $OpenBSD: if_art.c,v 1.14 2007/09/17 17:34:22 brad Exp $ */
/*
* Copyright (c) 2004,2005 Internet Business Solutions AG, Zurich, Switzerland
@@ -262,7 +262,8 @@ art_ifm_change(struct ifnet *ifp)
struct channel_softc *cc = ifp->if_softc;
struct art_softc *ac = (struct art_softc *)cc->cc_parent;
struct ifmedia *ifm = &ac->art_ifm;
- int rv, s, baudrate;
+ u_int64_t baudrate;
+ int rv, s;
ACCOOM_PRINTF(2, ("%s: art_ifm_change %08x\n", ifp->if_xname,
ifm->ifm_media));
@@ -318,7 +319,7 @@ art_ifm_change(struct ifnet *ifp)
if (baudrate != ifp->if_baudrate) {
ifp->if_baudrate = baudrate;
s = splsoftnet();
- if_link_state_change(ifp), baudrate;
+ if_link_state_change(ifp);
splx(s);
}