From ed369613f458f81ccbec7719dba0df7b34e820c5 Mon Sep 17 00:00:00 2001 From: Cedric Izoard Date: Tue, 4 May 2021 10:51:57 +0200 Subject: [PATCH] P2P: Align p2p_buf_add_pref_channel_list() prototype with definition 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 --- 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 8220e8550..aa147c614 100644 --- a/src/p2p/p2p_i.h +++ b/src/p2p/p2p_i.h @@ -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,