"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 foo {
> int
...
> Signed-off-by: Gustavo A. R. Silva
> ---
> drivers/net/wireless/quantenna/qtnfmac/bus.h |2
> drivers/net/wireless/quantenna/qtnfmac/qlink.h | 54
> -
> 2 files changed, 28 insertions(+), 28 deletions(-)
Reviewed-by: Sergey Matyukevich
Regards,
Sergey
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
3 matches
Mail list logo