Skip to content

Commit

Permalink
tnl-neigh-cache: Include expected array sizes in prototypes.
Browse files Browse the repository at this point in the history
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>
Acked-by: Paolo Valerio <pvalerio@redhat.com>
  • Loading branch information
blp committed May 7, 2021
1 parent f09182a commit b96d275
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/tnl-neigh-cache.h
Expand Up @@ -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

0 comments on commit b96d275

Please sign in to comment.