diff options
-rw-r--r-- | src/vendorcode/cavium/bdk/libbdk-hal/bdk-nic.c | 2 | ||||
-rw-r--r-- | src/vendorcode/cavium/include/bdk/libbdk-hal/if/bdk-if.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/vendorcode/cavium/bdk/libbdk-hal/bdk-nic.c b/src/vendorcode/cavium/bdk/libbdk-hal/bdk-nic.c index b6a9384e10..1a996365be 100644 --- a/src/vendorcode/cavium/bdk/libbdk-hal/bdk-nic.c +++ b/src/vendorcode/cavium/bdk/libbdk-hal/bdk-nic.c @@ -80,7 +80,7 @@ typedef struct int next_free_cpi; int next_free_rssi; int next_free_bpid; - nic_t *nic_map[0]; /* Indexed by handle->nic_id */ + nic_t *nic_map[]; /* Indexed by handle->nic_id */ } nic_node_state_t; static nic_node_state_t *global_node_state[BDK_NUMA_MAX_NODES]; diff --git a/src/vendorcode/cavium/include/bdk/libbdk-hal/if/bdk-if.h b/src/vendorcode/cavium/include/bdk/libbdk-hal/if/bdk-if.h index c3ede0acc8..b77aa2a393 100644 --- a/src/vendorcode/cavium/include/bdk/libbdk-hal/if/bdk-if.h +++ b/src/vendorcode/cavium/include/bdk/libbdk-hal/if/bdk-if.h @@ -153,7 +153,7 @@ typedef struct __bdk_if_port char name[16]; struct __bdk_if_port *next; struct __bdk_if_port *poll_next; - char priv[0]; + char priv[]; } __bdk_if_port_t; typedef __bdk_if_port_t *bdk_if_handle_t; |