]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Align p2p_buf_add_pref_channel_list() prototype with definition
authorCedric Izoard <cedric.izoard@ceva-dsp.com>
Tue, 4 May 2021 08:51:57 +0000 (10:51 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 26 Aug 2021 13:04:58 +0000 (16:04 +0300)
Align the p2p_buf_add_pref_channel_list() prototype and definition in
p2p_build.c and p2p_i.h. Use unsigned int over u32 as it is actully
called with an unsigned int parameter.

This removes compilation warning on platform where u32 != unsigned int.

Signed-off-by: Cedric Izoard <cedric.izoard@ceva-dsp.com>
src/p2p/p2p_build.c
src/p2p/p2p_i.h

index 63eb2e84c3762cb2327770b881fb04ed0c20b60c..4229d9b3487369638f0c3e230a91b2b69aefb9d4 100644 (file)
@@ -111,7 +111,7 @@ void p2p_buf_add_operating_channel(struct wpabuf *buf, const char *country,
 
 
 void p2p_buf_add_pref_channel_list(struct wpabuf *buf,
-                                  const u32 *preferred_freq_list,
+                                  const unsigned int *preferred_freq_list,
                                   unsigned int size)
 {
        unsigned int i, count = 0;
index 8220e85506a3ea25493a14795211af3080c16b5e..aa147c614fc53bd1084ac36178a5f583c821c363 100644 (file)
@@ -789,7 +789,8 @@ void p2p_buf_add_persistent_group_info(struct wpabuf *buf, const u8 *dev_addr,
 int p2p_build_wps_ie(struct p2p_data *p2p, struct wpabuf *buf, int pw_id,
                     int all_attr);
 void p2p_buf_add_pref_channel_list(struct wpabuf *buf,
-                                  const u32 *preferred_freq_list, u32 size);
+                                  const unsigned int *preferred_freq_list,
+                                  unsigned int size);
 
 /* p2p_sd.c */
 struct p2p_sd_query * p2p_pending_sd_req(struct p2p_data *p2p,