[PATCH] scsi: Replace zero-length array with flexible-array member

2020-02-26 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

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

2020-02-26 Thread Gustavo A. R. Silva
On 2/24/20 10:30, Lee Duncan wrote: > On 2/24/20 8:14 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

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

2020-02-26 Thread 'Satish Kharat (satishkh)' via open-iscsi
Reviewed-by: Satish Kharat From: Gustavo A. R. Silva Sent: Monday, February 24, 2020 8:42 AM To: Lee Duncan ; Satish Kharat (satishkh) ; Sesidhar Baddela (sebaddel) ; Karan Tilak Kumar (kartilak) ; James E.J. Bottomley ; Martin K. Petersen ; Brian King ;

Tagging version 2.1.1 of open-iscsi/open-iscsi

2020-02-26 Thread The Lee-Man
Hi All: Just a heads up (for those that don't hang out on github) that I'm tagging version 2.1.1 of open-iscsi today, if there are no objections. -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving

Antw: [EXT] [PATCH] scsi: Replace zero-length array with flexible-array member

2020-02-26 Thread Ulrich Windl
Hi! Personally I think variable-sized structures are a bad thing, independent of the syntax being used. 30 years ago saving one indirection would have been an argument for such structures, but nowadays? Regards, Ulrich >>> "Gustavo A. R. Silva" schrieb am 24.02.2020 um >>> 17:14 in