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 <cedric.izoard@ceva-dsp.com>
This commit is contained in:
parent
75a6d44a4a
commit
ed369613f4
2 changed files with 3 additions and 2 deletions
|
@ -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,
|
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 size)
|
||||||
{
|
{
|
||||||
unsigned int i, count = 0;
|
unsigned int i, count = 0;
|
||||||
|
|
|
@ -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 p2p_build_wps_ie(struct p2p_data *p2p, struct wpabuf *buf, int pw_id,
|
||||||
int all_attr);
|
int all_attr);
|
||||||
void p2p_buf_add_pref_channel_list(struct wpabuf *buf,
|
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 */
|
/* p2p_sd.c */
|
||||||
struct p2p_sd_query * p2p_pending_sd_req(struct p2p_data *p2p,
|
struct p2p_sd_query * p2p_pending_sd_req(struct p2p_data *p2p,
|
||||||
|
|
Loading…
Reference in a new issue