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:
Marcel Holtmann 2015-03-20 06:43:54 +01:00
parent 0ee173e23f
commit 2c061e6394
1 changed files with 1 additions and 1 deletions

View File

@ -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,