From: Donald Sharp Date: Wed, 23 Jan 2019 01:55:55 +0000 (-0500) Subject: zebra: Fix compile issues introduced by recent commit on newer compilers X-Git-Tag: 7.1_pulled~314^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F3650%2Fhead;p=mirror%2Ffrr.git zebra: Fix compile issues introduced by recent commit on newer compilers We were using dplane_ctx_get_status(ctx) and assigning that value to zebra_dplane_status, not zebra_dplane_result( yeah what? ) Signed-off-by: Donald Sharp --- diff --git a/zebra/zebra_mpls.c b/zebra/zebra_mpls.c index 4ea7f32446..c255c68866 100644 --- a/zebra/zebra_mpls.c +++ b/zebra/zebra_mpls.c @@ -1748,7 +1748,7 @@ void zebra_mpls_lsp_dplane_result(struct zebra_dplane_ctx *ctx) zebra_nhlfe_t *nhlfe; struct nexthop *nexthop; enum dplane_op_e op; - enum zebra_dplane_status status; + enum zebra_dplane_result status; op = dplane_ctx_get_op(ctx); status = dplane_ctx_get_status(ctx); @@ -1780,8 +1780,7 @@ void zebra_mpls_lsp_dplane_result(struct zebra_dplane_ctx *ctx) /* TODO -- Confirm that this result is still 'current' */ - if (dplane_ctx_get_status(ctx) == - ZEBRA_DPLANE_REQUEST_SUCCESS) { + if (status == ZEBRA_DPLANE_REQUEST_SUCCESS) { /* Update zebra object */ SET_FLAG(lsp->flags, LSP_FLAG_INSTALLED); for (nhlfe = lsp->nhlfe_list; nhlfe;