util.c:57:34: warning: argument 1 of type ‘uint8_t[6]’ {aka ‘unsigned char[6]’} with mismatched bound [-Warray-parameter=] 57 | bool is_valid_ether_addr(uint8_t addr[ETH_ALEN]) | ~~~~~~~~^~~~~~~~~~~~~~ In file included from util.c:20: alfred.h:231:35: note: previously declared as ‘uint8_t *’ {aka ‘unsigned char *’} 231 | bool is_valid_ether_addr(uint8_t *addr); | ~~~~~~~~~^~~~
Signed-off-by: Marek Lindner mareklindner@neomailbox.ch --- alfred.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/alfred.h b/alfred.h index 6fb57ce..97f0093 100644 --- a/alfred.h +++ b/alfred.h @@ -228,7 +228,7 @@ int time_diff(struct timespec *tv1, struct timespec *tv2, struct timespec *tvdiff); void time_random_seed(void); uint16_t get_random_id(void); -bool is_valid_ether_addr(uint8_t *addr); +bool is_valid_ether_addr(uint8_t addr[ETH_ALEN]); bool is_iface_disabled(char *iface); int ipv4_arp_request(struct interface *interface, const alfred_addr *addr, struct ether_addr *mac);