diff options
Diffstat (limited to 'sys/dev/sfxge/sfxge_port.c')
-rw-r--r-- | sys/dev/sfxge/sfxge_port.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sfxge/sfxge_port.c b/sys/dev/sfxge/sfxge_port.c index c8b0334..2ebc521 100644 --- a/sys/dev/sfxge/sfxge_port.c +++ b/sys/dev/sfxge/sfxge_port.c @@ -62,7 +62,7 @@ sfxge_mac_stat_update(struct sfxge_softc *sc) } now = ticks; - if (now - port->mac_stats.update_time < hz) { + if ((unsigned int)(now - port->mac_stats.update_time) < (unsigned int)hz) { rc = 0; goto out; } @@ -570,7 +570,7 @@ sfxge_phy_stat_update(struct sfxge_softc *sc) } now = ticks; - if (now - port->phy_stats.update_time < hz) { + if ((unsigned int)(now - port->phy_stats.update_time) < (unsigned int)hz) { rc = 0; goto out; } |