diff options
author | Chris Hall (GMCH) <chris.hall@highwayman.com> | 2009-12-09 18:31:59 +0000 |
---|---|---|
committer | Chris Hall (GMCH) <chris.hall@highwayman.com> | 2009-12-09 18:31:59 +0000 |
commit | 5e4383cc008567bbb590031b920482e6f3a1dce9 (patch) | |
tree | b0f62291bc9f085b98ecb318170fc48d7cbadf64 /lib/qpselect.c | |
parent | b3edb8b2b5d1e9c7b23bad9de6802e89c3a8fd0b (diff) | |
download | quagga-5e4383cc008567bbb590031b920482e6f3a1dce9.tar.bz2 quagga-5e4383cc008567bbb590031b920482e6f3a1dce9.tar.xz |
Fix qps_pselect() so that zeroises results, not enabled.
Diffstat (limited to 'lib/qpselect.c')
-rw-r--r-- | lib/qpselect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/qpselect.c b/lib/qpselect.c index 44ab5e56..cf1df985 100644 --- a/lib/qpselect.c +++ b/lib/qpselect.c @@ -304,7 +304,7 @@ qps_pselect(qps_selection qps, qtime_mono_t timeout) /* given count of fds -- but it does no harm to be tidy, and should */ /* not have to do this often.) */ if (qps->pend_count != 0) - qps_super_set_zero(qps->enabled, qps_mnum_count) ; + qps_super_set_zero(qps->results, qps_mnum_count) ; /* Prepare the argument/result bitmaps */ /* Capture pend_mnum and tried_count[] */ @@ -348,7 +348,7 @@ qps_pselect(qps_selection qps, qtime_mono_t timeout) } ; /* Flush the results vectors -- not apparently done if n <= 0) */ - qps_super_set_zero(qps->enabled, qps_mnum_count) ; + qps_super_set_zero(qps->results, qps_mnum_count) ; qps->pend_count = 0 ; /* nothing pending */ |