Repository : ssh://git@diktynna/alfred
On branch : master
commit bca529cccf6c70f5169e89b68fc3329b213b7e15 Author: Marek Lindner mareklindner@neomailbox.ch Date: Thu Aug 4 20:52:12 2022 +0200
alfred: mismaching declarations of is_valid_ether_addr()
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 Signed-off-by: Sven Eckelmann sven@narfation.org
bca529cccf6c70f5169e89b68fc3329b213b7e15 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);