]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
libext2fs: remove c99 idiom to fix build
authorEric Sandeen <sandeen@redhat.com>
Sat, 23 Jun 2018 22:04:19 +0000 (18:04 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 23 Jun 2018 22:04:19 +0000 (18:04 -0400)
commit60afa1d81664f8f7f39d5e4cf70b397e8d7154a7
treed530d09c734a6f94d195a27ca25ce6d8cc0fcea9
parent0d5c1d7ff1fce00549cc9b7367ecdbd175cdd502
libext2fs: remove c99 idiom to fix build

hashmap.c: In function ‘ext2fs_hashmap_free’:
hashmap.c:72:2: error: ‘for’ loop initial declarations are only allowed in C99 mode
  for (size_t i = 0; i < h->size; ++i) {
  ^
hashmap.c:72:2: note: use option -std=c99 or -std=gnu99 to compile your code
make[2]: *** [hashmap.o] Error 1

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/hashmap.c