mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-04-20 11:18:04 +02:00
unit: Fix country code assignment for test case
CC unit/test-p2p.o unit/test-p2p.c:344:36: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (4 chars into 3 available) [-Werror=unterminated-string-initialization] 344 | .country = "XX\x04", | ^~~~~~~~
This commit is contained in:
parent
c00bc3a065
commit
4ded663e68
@ -341,7 +341,7 @@ static const struct p2p_probe_req_data p2p_probe_req_data_1 = {
|
||||
.group_caps = 0,
|
||||
},
|
||||
.listen_channel = {
|
||||
.country = "XX\x04",
|
||||
.country = { 'X', 'X', '\x04' },
|
||||
.oper_class = 81,
|
||||
.channel_num = 1,
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user