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

2020-05-15 Thread Gustavo A. R. Silva
On Fri, May 15, 2020 at 01:03:47PM -0700, John Johansen wrote: > > > > Signed-off-by: Gustavo A. R. Silva > Acked-by: John Johansen > > I have pulled this into my tree Great. :) Thanks, John. -- Gustavo

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

2020-05-15 Thread John Johansen
On 5/7/20 11:43 AM, Gustavo A. R. Silva wrote: > 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

[PATCH] apparmor: 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