diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2016-06-07 01:31:55 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2016-06-07 01:31:55 +0000 |
commit | ba1f69626860142f7ded4737cf681df35b881fbe (patch) | |
tree | bdd025a375c2fcb72c874bac886c2a6b2131b6ea /sys/net | |
parent | f97aeee421843d0963b2256e41c79950a14d7cd0 (diff) |
per trending style, add continue to empty loops.
ok mglocker
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/pf.c | 4 | ||||
-rw-r--r-- | sys/net/rtable.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index fe1f448686c..a659fa7d63a 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.974 2016/05/31 07:35:36 mpi Exp $ */ +/* $OpenBSD: pf.c,v 1.975 2016/06/07 01:31:54 tedu Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -3867,7 +3867,7 @@ pf_tcp_track_full(struct pf_pdesc *pd, struct pf_state_peer *src, if (dst->seqdiff && !src->seqdiff) { /* use random iss for the TCP server */ while ((src->seqdiff = arc4random() - seq) == 0) - ; + continue; ack = ntohl(th->th_ack) - dst->seqdiff; pf_change_a(pd, &th->th_seq, htonl(seq + src->seqdiff)); pf_change_a(pd, &th->th_ack, htonl(ack)); diff --git a/sys/net/rtable.c b/sys/net/rtable.c index 1314400eb55..aac0650e39c 100644 --- a/sys/net/rtable.c +++ b/sys/net/rtable.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtable.c,v 1.45 2016/06/01 09:46:19 dlg Exp $ */ +/* $OpenBSD: rtable.c,v 1.46 2016/06/07 01:31:54 tedu Exp $ */ /* * Copyright (c) 2014-2015 Martin Pieuchot @@ -468,7 +468,7 @@ rtable_walk(unsigned int rtableid, sa_family_t af, return (EAFNOSUPPORT); while ((error = rn_walktree(rnh, f, arg)) == EAGAIN) - ; /* nothing */ + continue; return (error); } @@ -861,7 +861,7 @@ rtable_walk(unsigned int rtableid, sa_family_t af, rwc.rwc_rid = rtableid; while ((error = art_walk(ar, rtable_walk_helper, &rwc)) == EAGAIN) - ; /* nothing */ + continue; return (error); } |