summaryrefslogtreecommitdiff
path: root/lib/librte_ip_frag
diff options
context:
space:
mode:
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>2016-09-08 14:25:04 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-09-13 15:35:28 +0200
commit347a1e037fd323e6c2af55d17f7f0dc4bfe1d479 (patch)
tree9f23e123e0798bd8d6cdaa4b7e090cfcdc27faa2 /lib/librte_ip_frag
parent517b89b090547478e8e9885f55170b7ef14baab9 (diff)
downloaddpdk-347a1e037fd323e6c2af55d17f7f0dc4bfe1d479.zip
dpdk-347a1e037fd323e6c2af55d17f7f0dc4bfe1d479.tar.gz
dpdk-347a1e037fd323e6c2af55d17f7f0dc4bfe1d479.tar.xz
lib: use C99 syntax for zero-size arrays
Exported header files used by applications should allow the strictest compiler flags. Language extensions used in many places must be explicitly marked or removed to avoid warnings and compilation failures. The extension keyword is used whenever the C99 syntax cannot do it. This commit prevents the following errors: error: ISO C forbids zero-size array `[...]' Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Diffstat (limited to 'lib/librte_ip_frag')
-rw-r--r--lib/librte_ip_frag/rte_ip_frag.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/librte_ip_frag/rte_ip_frag.h b/lib/librte_ip_frag/rte_ip_frag.h
index 9ac7081..69596ab 100644
--- a/lib/librte_ip_frag/rte_ip_frag.h
+++ b/lib/librte_ip_frag/rte_ip_frag.h
@@ -124,7 +124,7 @@ struct rte_ip_frag_tbl {
struct ip_frag_pkt *last; /**< last used entry. */
struct ip_pkt_list lru; /**< LRU list for table entries. */
struct ip_frag_tbl_stat stat; /**< statistics counters. */
- struct ip_frag_pkt pkt[0]; /**< hash table. */
+ struct ip_frag_pkt pkt[]; /**< hash table. */
};
/** IPv6 fragment extension header */