Skip to content

Commit

Permalink
affs: struct slink_front: Replace 1-element array with flexible array
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
kees authored and kdave committed Jul 11, 2024
1 parent e5f5ee8 commit 0aef1d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/affs/amigaffs.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ struct slink_front
__be32 key;
__be32 spare1[3];
__be32 checksum;
u8 symname[1]; /* depends on block size */
u8 symname[]; /* depends on block size */
};

struct affs_data_head
Expand Down

0 comments on commit 0aef1d4

Please sign in to comment.