Re: [PATCH] Bluetooth: L2CAP: Replace zero-length array with flexible-array

2020-05-18 Thread Gustavo A. R. Silva
On Mon, May 18, 2020 at 09:58:22AM +0200, Marcel Holtmann wrote: > > > > Signed-off-by: Gustavo A. R. Silva > > --- > > include/net/bluetooth/l2cap.h | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > patch has been applied to bluetooth-next tree. > Thanks, Marcel. -- Gustavo

Re: [PATCH] Bluetooth: L2CAP: Replace zero-length array with flexible-array

2020-05-18 Thread Marcel Holtmann
Hi Gustavo, > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced in C99: > > struct foo { >int stuff; >st

[PATCH] Bluetooth: L2CAP: Replace zero-length array with flexible-array

2020-05-13 Thread Gustavo A. R. Silva
The current codebase makes use of the zero-length array language extension to the C90 standard, but the preferred mechanism to declare variable-length types such as these ones is a flexible array member[1][2], introduced in C99: struct foo { int stuff; struct boo array[]; }; By ma