summaryrefslogtreecommitdiffstats
path: root/lib/qpselect.c
diff options
context:
space:
mode:
authorChris Hall (GMCH) <chris.hall@highwayman.com>2009-12-09 09:35:41 +0000
committerChris Hall (GMCH) <chris.hall@highwayman.com>2009-12-09 09:35:41 +0000
commit6699ea2724612e206b8e80a51ee1b9a0d00acded (patch)
treed09a289a9c082be8c4d7326f2345026c3d3551e7 /lib/qpselect.c
parent7cd0bef08985f2c8b8deedfbf229390cf0111842 (diff)
downloadquagga-6699ea2724612e206b8e80a51ee1b9a0d00acded.tar.bz2
quagga-6699ea2724612e206b8e80a51ee1b9a0d00acded.tar.xz
Bug fix in qps_make_super_set_map(), lib/qpselect.c
Diffstat (limited to 'lib/qpselect.c')
-rw-r--r--lib/qpselect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/qpselect.c b/lib/qpselect.c
index 9ab25018..aafb2ca7 100644
--- a/lib/qpselect.c
+++ b/lib/qpselect.c
@@ -939,12 +939,12 @@ qps_make_super_set_map(void)
for (fd = 0 ; fd < 8 ; ++fd)
{
uint8_t fdb = fd_bit_map[fd] ;
- for (i = 0 ; i < 256 ; ++i)
+ for (i = 1 ; i < 256 ; ++i)
if ((fd_first_map[i] == -1) && ((i & fdb) != 0))
fd_first_map[i] = fd ;
} ;
- for (i = 0 ; i < 256 ; ++i)
+ for (i = 1 ; i < 256 ; ++i)
if (fd_first_map[i] == -1)
zabort("Broken fd_first_map -- missing bits") ;