[PATCH] p2p: cleanup p2p_buf_add_pref_channel_list prototype

Cedric Izoard cedric.izoard at ceva-dsp.com
Tue May 4 09:51:57 BST 2021


Align p2p_buf_add_pref_channel_list prototype in p2p_build.c
and p2p_i.h.
Used unsigned int over u32 as it is actully called with unsigned int
parameter.

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

Signed-off-by: Cedric Izoard <cedric.izoard at ceva-dsp.com>
---
 src/p2p/p2p_build.c | 2 +-
 src/p2p/p2p_i.h     | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/p2p/p2p_build.c b/src/p2p/p2p_build.c
index 63eb2e84c..4229d9b34 100644
--- a/src/p2p/p2p_build.c
+++ b/src/p2p/p2p_build.c
@@ -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;
diff --git a/src/p2p/p2p_i.h b/src/p2p/p2p_i.h
index 4195c5f07..37caf0d2a 100644
--- a/src/p2p/p2p_i.h
+++ b/src/p2p/p2p_i.h
@@ -784,7 +784,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,
-- 
2.17.0




More information about the Hostap mailing list