]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
AOSP: ext2simg: use a standard flexible array
authorEric Biggers <ebiggers@google.com>
Thu, 23 Mar 2023 00:44:21 +0000 (00:44 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 20 May 2024 16:58:46 +0000 (12:58 -0400)
Use a standard flexible array instead of a nonstandard zero-length
array.  No change in behavior.

Change-Id: Ifdce24f5d6e2471634bb785527def3fe8fefc202
Signed-off-by: Eric Biggers <ebiggers@google.com>
From AOSP commit: c88ea796fbf7f4c79155196ec483681b3733bbff

contrib/android/ext2simg.c

index efb4e41a239eacff743abc74ead8e0f38d419bd7..9b594f371d940831714c2396ec5b79565c829590 100644 (file)
@@ -58,7 +58,7 @@ static void usage(char *path)
 
 static struct buf_item {
        struct buf_item     *next;
-       void                *buf[0];
+       void                *buf[];
 } *buf_list;
 
 /*