mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-02 01:02:34 +01:00
wiphy: Fix compiler warning with sizeof function
CC src/wiphy.o src/wiphy.c: In function ‘eapol_read’: src/wiphy.c:172:24: error: argument to ‘sizeof’ in ‘memset’ call is the same expression as the destination; did you mean to remove the addressof? [-Werror=sizeof-pointer-memaccess] memset(&sll, 0, sizeof(&sll)); ^
This commit is contained in:
parent
0ee173e23f
commit
2c061e6394
@ -169,7 +169,7 @@ static bool eapol_read(struct l_io *io, void *user_data)
|
||||
ssize_t bytes;
|
||||
uint8_t frame[2304]; /* IEEE Std 802.11 ch. 8.2.3 */
|
||||
|
||||
memset(&sll, 0, sizeof(&sll));
|
||||
memset(&sll, 0, sizeof(sll));
|
||||
sll_len = sizeof(sll);
|
||||
|
||||
bytes = recvfrom(fd, frame, sizeof(frame), 0,
|
||||
|
Loading…
Reference in New Issue
Block a user