]> The Tcpdump Group git mirrors - libpcap/commitdiff
optimize: use JT() rather than explicitly referring to et.succ.
authorGuy Harris <[email protected]>
Mon, 18 May 2020 04:19:01 +0000 (21:19 -0700)
committerGuy Harris <[email protected]>
Mon, 18 May 2020 04:19:01 +0000 (21:19 -0700)
In the rest of the routine, JT() is used; this change makes it a bit
clearer what's happening.

optimize.c

index 195e85e6280e3c62199bba6b5cbb6338b6456c44..5b3bc98996f10aaa623d2e8d9da7acc5861cd182 100644 (file)
@@ -1631,7 +1631,7 @@ opt_j(opt_state_t *opt_state, struct edge *ep)
                 * from what the blocks before it did and isn't
                 * doing any tests the results of which matter.
                 */
-               if (!use_conflict(ep->pred, ep->succ->et.succ)) {
+               if (!use_conflict(ep->pred, JT(ep->succ))) {
                        /*
                         * No, there isn't.
                         * Make this edge go to the block to