.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | BNEP protocol definition for Linux Bluetooth stack (BlueZ). |
---|
3 | 4 | Copyright (C) 2002 Maxim Krasnyansky <maxk@qualcomm.com> |
---|
4 | 5 | |
---|
5 | | - This program is free software; you can redistribute it and/or modify |
---|
6 | | - it under the terms of the GNU General Public License, version 2, as |
---|
7 | | - published by the Free Software Foundation. |
---|
8 | | - |
---|
9 | | - This program is distributed in the hope that it will be useful, |
---|
10 | | - but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
11 | | - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
12 | | - GNU General Public License for more details. |
---|
13 | | - |
---|
14 | | - You should have received a copy of the GNU General Public License |
---|
15 | | - along with this program; if not, see <http://www.gnu.org/licenses/>. |
---|
16 | 6 | */ |
---|
17 | 7 | |
---|
18 | 8 | #ifndef _BNEP_H |
---|
.. | .. |
---|
84 | 74 | __u8 type; |
---|
85 | 75 | __u8 ctrl; |
---|
86 | 76 | __u8 uuid_size; |
---|
87 | | - __u8 service[0]; |
---|
| 77 | + __u8 service[]; |
---|
88 | 78 | } __packed; |
---|
89 | 79 | |
---|
90 | 80 | struct bnep_set_filter_req { |
---|
91 | 81 | __u8 type; |
---|
92 | 82 | __u8 ctrl; |
---|
93 | 83 | __be16 len; |
---|
94 | | - __u8 list[0]; |
---|
| 84 | + __u8 list[]; |
---|
95 | 85 | } __packed; |
---|
96 | 86 | |
---|
97 | 87 | struct bnep_control_rsp { |
---|
.. | .. |
---|
103 | 93 | struct bnep_ext_hdr { |
---|
104 | 94 | __u8 type; |
---|
105 | 95 | __u8 len; |
---|
106 | | - __u8 data[0]; |
---|
| 96 | + __u8 data[]; |
---|
107 | 97 | } __packed; |
---|
108 | 98 | |
---|
109 | 99 | /* BNEP ioctl defines */ |
---|