poll: Avoid duplicate array index counting
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 3 Oct 2014 20:43:39 +0000 (21:43 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 6 Oct 2014 22:10:23 +0000 (23:10 +0100)
commitd613fd78298a9911b7917c06f3ea11de45462e76
tree7b6b7a678b1a30a7207eaab06d90a231c60facd0
parent67be07ed798122634472d467f42727f2e92a8f40
poll: Avoid duplicate array index counting

Calculate remain from idx at the top of the loop.  This avoids having
to keep both remain and idx in step.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
secnet.c