From: jmatthew Date: Mon, 10 Sep 2018 04:52:23 +0000 (+0000) Subject: bit rates over 2G won't fit in an int, so use uint64_ts instead X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0f734ffc7b0aadd3d0f790fc45f6695e7f947dad;p=openbsd bit rates over 2G won't fit in an int, so use uint64_ts instead --- diff --git a/sys/dev/pci/if_bnxt.c b/sys/dev/pci/if_bnxt.c index e9d50e83789..416d66df847 100644 --- a/sys/dev/pci/if_bnxt.c +++ b/sys/dev/pci/if_bnxt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bnxt.c,v 1.12 2018/09/07 13:18:06 jmatthew Exp $ */ +/* $OpenBSD: if_bnxt.c,v 1.13 2018/09/10 04:52:23 jmatthew Exp $ */ /*- * Broadcom NetXtreme-C/E network driver. * @@ -1508,7 +1508,7 @@ bnxt_hwrm_port_phy_qcfg(struct bnxt_softc *softc, struct ifmediareq *ifmr) struct hwrm_port_phy_qcfg_output *resp = BNXT_DMA_KVA(softc->sc_cmd_resp); int link_state = LINK_STATE_DOWN; - int speeds[] = { + uint64_t speeds[] = { IF_Gbps(1), IF_Gbps(2), IF_Mbps(2500), IF_Gbps(10), IF_Gbps(20), IF_Gbps(25), IF_Gbps(40), IF_Gbps(50), IF_Gbps(100) };