Skip to content

Commit

Permalink
ospf: Compile fixes for gcc 4.6
Browse files Browse the repository at this point in the history
Original patch by:
Jose Manuel dos Santos Calhariz <jose.spam@netvisao.pt>

Signed-off-by: Ben Greear <greearb@candelatech.com>
  • Loading branch information
greearb committed Jul 25, 2011
1 parent ce3302b commit 2115df3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xorp/ospf/peer.cc
Expand Up @@ -4870,13 +4870,13 @@ link_state_acknowledgement_received(LinkStateAcknowledgementPacket *lsap)
// exist solely for monitoring. The double lookup is also
// unnecessary. A call to compare_all_header_fields is all
// that is required.
bool found = false;
bool partial = false;
//bool found = false;
//bool partial = false;
for (j = _lsa_rxmt.begin(); j != _lsa_rxmt.end(); j++) {
if ((*i) == (*j)->get_header()) {
partial = true;
//partial = true;
if (compare_all_header_fields((*i),(*j)->get_header())) {
found = true;
//found = true;
(*j)->remove_nack(get_neighbour_id());
_lsa_rxmt.erase(j);
break;
Expand Down

0 comments on commit 2115df3

Please sign in to comment.