X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Flacp%2Fnode.h;h=59af66f20d06e0f7b9d9cf8a4428e68f43c55602;hb=b954f0125b9aa9324c4d2f9f25ba8232a94c624a;hp=88bc58723904ac86a949db3ff1915df5645843ef;hpb=4168c4d914c36f76c45cd8c6dde207b9f1c688e2;p=vpp.git diff --git a/src/plugins/lacp/node.h b/src/plugins/lacp/node.h index 88bc5872390..59af66f20d0 100644 --- a/src/plugins/lacp/node.h +++ b/src/plugins/lacp/node.h @@ -37,7 +37,7 @@ typedef enum MARKER_N_PACKET_TEMPLATES, } marker_packet_template_id_t; -enum +typedef enum { LACP_PROCESS_EVENT_START = 1, LACP_PROCESS_EVENT_STOP = 2, @@ -186,8 +186,7 @@ format_rx_sm_state (u8 * s, va_list * args) {.str = NULL} }; int state = va_arg (*args, int); - lacp_state_struct *state_entry = - (lacp_state_struct *) & lacp_rx_sm_state_array; + lacp_state_struct *state_entry = lacp_rx_sm_state_array; if (state >= (sizeof (lacp_rx_sm_state_array) / sizeof (*state_entry))) s = format (s, "Bad state %d", state); @@ -207,8 +206,7 @@ format_tx_sm_state (u8 * s, va_list * args) {.str = NULL} }; int state = va_arg (*args, int); - lacp_state_struct *state_entry = - (lacp_state_struct *) & lacp_tx_sm_state_array; + lacp_state_struct *state_entry = lacp_tx_sm_state_array; if (state >= (sizeof (lacp_tx_sm_state_array) / sizeof (*state_entry))) s = format (s, "Bad state %d", state); @@ -228,8 +226,7 @@ format_mux_sm_state (u8 * s, va_list * args) {.str = NULL} }; int state = va_arg (*args, int); - lacp_state_struct *state_entry = - (lacp_state_struct *) & lacp_mux_sm_state_array; + lacp_state_struct *state_entry = lacp_mux_sm_state_array; if (state >= (sizeof (lacp_mux_sm_state_array) / sizeof (*state_entry))) s = format (s, "Bad state %d", state); @@ -249,8 +246,7 @@ format_ptx_sm_state (u8 * s, va_list * args) {.str = NULL} }; int state = va_arg (*args, int); - lacp_state_struct *state_entry = - (lacp_state_struct *) & lacp_ptx_sm_state_array; + lacp_state_struct *state_entry = lacp_ptx_sm_state_array; if (state >= (sizeof (lacp_ptx_sm_state_array) / sizeof (*state_entry))) s = format (s, "Bad state %d", state);