Whamcloud - gitweb
lib/support: clean up definition of flags_array
authorEric Biggers <ebiggers@google.com>
Sat, 21 Jan 2023 20:32:16 +0000 (12:32 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 27 Jan 2023 17:38:31 +0000 (12:38 -0500)
commitf6480ab1c55896d49374e0e1875c60776df7cfd1
tree45ae2ca0b2525785b62485f025bd6ce2a6544bfa
parent9983b6f388daa1e565a690cabf1add9fa094ed5d
lib/support: clean up definition of flags_array

Add braces to address the following compiler warning with gcc -Wall:

print_fs_flags.c:24:42: warning: missing braces around initializer [-Wmissing-braces]
   24 | static struct flags_name flags_array[] = {
      |                                          ^

Also add 'const', and add an explicit NULL in the last entry.

Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/support/print_fs_flags.c