diff --git a/usr.sbin/mrouted/main.c b/usr.sbin/mrouted/main.c index 7ab3de8495f8..b3526d5934dc 100644 --- a/usr.sbin/mrouted/main.c +++ b/usr.sbin/mrouted/main.c @@ -532,7 +532,7 @@ main(argc, argv) gettimeofday(&curtime, NULL); difftime.tv_sec = curtime.tv_sec - lasttime.tv_sec; difftime.tv_usec += curtime.tv_usec - lasttime.tv_usec; - while (difftime.tv_usec > 1000000) { + while (difftime.tv_usec >= 1000000) { difftime.tv_sec++; difftime.tv_usec -= 1000000; } diff --git a/usr.sbin/mrouted/mtrace.c b/usr.sbin/mrouted/mtrace.c index 2ddf4f9e88a5..66df8e284d32 100644 --- a/usr.sbin/mrouted/mtrace.c +++ b/usr.sbin/mrouted/mtrace.c @@ -1955,7 +1955,7 @@ stat_line(r, s, have_next, rst) v_out = ntohl(s->tr_vifin) - ntohl(r->tr_vifin); v_pps = v_out / timediff; whochar = 'v'; - /* Fall through */ + /* FALLTHROUGH */ case OUTS: if (tunstats) @@ -2005,7 +2005,7 @@ stat_line(r, s, have_next, rst) g_out = ntohl(s->tr_pktcnt) - ntohl(r->tr_pktcnt); g_pps = g_out / timediff; whochar = 'v'; - /* Fall through */ + /* FALLTHROUGH */ #endif case OUTS: