@@ -32,11 +32,11 @@
#include "util.h"
int tnl_neigh_snoop(const struct flow *flow, struct flow_wildcards *wc,
- const char dev_name[]);
-int tnl_neigh_lookup(const char dev_name[], const struct in6_addr *dst,
+ const char dev_name[IFNAMSIZ]);
+int tnl_neigh_lookup(const char dev_name[IFNAMSIZ], const struct in6_addr *dst,
struct eth_addr *mac);
void tnl_neigh_cache_init(void);
void tnl_neigh_cache_run(void);
-void tnl_neigh_flush(const char dev_name[]);
+void tnl_neigh_flush(const char dev_name[IFNAMSIZ]);
#endif
GCC 11 warned that the prototypes and the definitions of these functions were different: the prototypes used [], the definitions used [IFNAMSIZ]. This is perfectly valid from a C standards perspective, but it's confusing and providing sizes gives the compiler and the developer a useful hint as to usage. Therefore, this commit adds the expected sizes. Signed-off-by: Ben Pfaff <blp@ovn.org> --- lib/tnl-neigh-cache.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)