Skip to content

Commit 0aef1d4

Browse files
keeskdave
authored andcommitted
affs: struct slink_front: Replace 1-element array with flexible array
Replace the deprecated[1] use of a 1-element array in struct slink_front with a modern flexible array. No binary differences are present after this conversion. Link: KSPP#79 [1] Reviewed-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Kees Cook <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent e5f5ee8 commit 0aef1d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/affs/amigaffs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ struct slink_front
108108
__be32 key;
109109
__be32 spare1[3];
110110
__be32 checksum;
111-
u8 symname[1]; /* depends on block size */
111+
u8 symname[]; /* depends on block size */
112112
};
113113

114114
struct affs_data_head

0 commit comments

Comments
 (0)