diff options
author | paul <paul> | 2007-08-06 18:52:45 +0000 |
---|---|---|
committer | paul <paul> | 2007-08-06 18:52:45 +0000 |
commit | 9e0bd2f32999f211742c861659b40215bfe87c45 (patch) | |
tree | 1f225c52a26e0080a97cddd5f45ea8e9ccd8f584 /lib/pqueue.c | |
parent | b8cb700479f6b848b92da5ec810f0da3e5e5a001 (diff) | |
download | quagga-9e0bd2f32999f211742c861659b40215bfe87c45.tar.bz2 quagga-9e0bd2f32999f211742c861659b40215bfe87c45.tar.xz |
[ospfd] Fix bad SPF calculation on some topologies - incorrect sorting
2007-08-07 Atis Elsts <atis@mikrotik.com>
* ospf_spf.c: (ospf_spf_next) Sort heap in correct direction
after vertex cost is changed, thus fixing incorrect SPF
calculation on certain topologies.
* lib/pqueue.{c,h}: Export trickle_up
Diffstat (limited to 'lib/pqueue.c')
-rw-r--r-- | lib/pqueue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pqueue.c b/lib/pqueue.c index a974a49e..12a779f2 100644 --- a/lib/pqueue.c +++ b/lib/pqueue.c @@ -42,7 +42,7 @@ Boston, MA 02111-1307, USA. */ #define RIGHT_OF(x) (2 * x + 2) #define HAVE_CHILD(x,q) (x < (q)->size / 2) -static void +void trickle_up (int index, struct pqueue *queue) { void *tmp; |