[quagga-dev 1335] Re: ospfd dies -- bug in ospf_spf_consider_nexthop

Andrew J. Schorr aschorr at telemetry-investments.com
Thu Jul 1 16:50:31 BST 2004


On Thu, Jul 01, 2004 at 04:44:27PM +0100, Paul Jakma wrote:
> On Thu, 1 Jul 2004, Paul Jakma wrote:
> 
> >#define LIST_LOOP_SAFE_NEXT (THIS,NEXT) \
> > ((THIS)->next != NULL) ? ((NEXT) = (THIS)->next) : ((NEXT) = (THIS));
>                                                                 ^^^^^^
> 
> should be NULL of course.

I don't think the ternary expression is accomplishing anything there.
How is that different from:

   (NEXT) = (THIS)->next;

?

-Andy



More information about the Quagga-dev mailing list