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

2020-05-13 Thread Gustavo A. R. Silva
Hi Marcel, On Wed, May 13, 2020 at 09:30:03AM +0200, Marcel Holtmann wrote: > > --- > > include/net/bluetooth/l2cap.h |6 +++--- > > include/net/bluetooth/mgmt.h | 40 > > > > 2 files changed, 23 insertions(+), 23 deletions(-) > > the mgmt.h portion

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

2020-05-13 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: Replace zero-length array with flexible-array

2020-05-07 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