hardlink: use flexible array member rather than zero-size array

This fixes two standards compliancy warnings.

hardlink.c:65:7: warning: ISO C forbids zero-size array ‘name’ [-Wpedantic]

Reference: https://en.wikipedia.org/wiki/Flexible_array_member
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2019-04-27 09:54:05 +01:00
parent 4267f2bcea
commit e87263aa13
No known key found for this signature in database
GPG Key ID: 0D46FEF7E61DBB46
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,7 @@ struct hardlink_hash {
struct hardlink_dir {
struct hardlink_dir *next;
char name[0];
char name[];
};
struct hardlink_file {
@ -70,7 +70,7 @@ struct hardlink_file {
ino_t ino;
dev_t dev;
unsigned int cksum;
char name[0];
char name[];
};
struct hardlink_dynstr {