Skip to content

Commit 9fdbe5f

Browse files
ceolinjhedberg
authored andcommitted
bt: host/classic: Use proper flexible array
0 length array is a GNU extension. Use proper C99 flexible array. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent 1441a5a commit 9fdbe5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

subsys/bluetooth/host/classic/avdtp_internal.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,13 @@ struct bt_avdtp_recovery_capabilities {
189189
struct bt_avdtp_media_codec_capabilities {
190190
uint8_t media_type;
191191
uint8_t media_code_type;
192-
uint8_t media_codec_spec_info[0];
192+
uint8_t media_codec_spec_info[];
193193
} __packed;
194194

195195
struct bt_avdtp_content_protection_capabilities {
196196
uint8_t cp_type_lsb;
197197
uint8_t cp_type_msb;
198-
uint8_t cp_type_spec_value[0];
198+
uint8_t cp_type_spec_value[];
199199
} __packed;
200200

201201
struct bt_avdtp_header_compression_capabilities {

0 commit comments

Comments
 (0)