3
0
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:
Marcel Holtmann 2025-04-19 22:49:53 +02:00
parent c00bc3a065
commit 4ded663e68

View File

@ -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,
},