]> git.ipfire.org Git - thirdparty/hostap.git/commit
Fix some compiler warnings on 32 bit platform
authorMasashi Honma <masashi.honma@gmail.com>
Fri, 20 Aug 2021 09:39:04 +0000 (18:39 +0900)
committerJouni Malinen <j@w1.fi>
Wed, 25 Aug 2021 09:03:02 +0000 (12:03 +0300)
commiteddcd27534c0cca167ef27fe07faecd803780dc4
tree83f1b4388891666f28618928b0439c0799d45a3a
parent4c80937c7fb32370d90a44deb165b932089e199d
Fix some compiler warnings on 32 bit platform

../src/ap/ieee802_11.c: In function ‘pasn_wd_handle_sae_commit’:
../src/ap/ieee802_11.c:2401:60: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
   wpa_printf(MSG_DEBUG, "PASN: SAE buffer too short. len=%lu",
                                                          ~~^
                                                          %u
       buf_len);
       ~~~~~~~
../src/ap/ieee802_11.c: In function ‘pasn_wd_handle_sae_confirm’:
../src/ap/ieee802_11.c:2477:60: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
   wpa_printf(MSG_DEBUG, "PASN: SAE buffer too short. len=%lu",
                                                          ~~^
                                                          %u
       buf_len);
       ~~~~~~~
../src/ap/ieee802_11.c: In function ‘pasn_wd_handle_fils’:
../src/ap/ieee802_11.c:2707:62: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘size_t’ {aka ‘unsigned int’} [-Wformat=]
   wpa_printf(MSG_DEBUG, "PASN: FILS: Buffer too short. len=%lu",
                                                            ~~^
                                                            %u
       buf_len);
       ~~~~~~~

Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
src/ap/ieee802_11.c