From: Andreas Schneider Date: Thu, 13 Dec 2018 12:42:23 +0000 (+0100) Subject: s4:torture: Use C99 initializers for file_levels in smb2 getinfo test X-Git-Tag: ldb-1.6.1~324 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bcbec40bbab1d7bb8fcc94a7321f3dba17b18db;p=thirdparty%2Fsamba.git s4:torture: Use C99 initializers for file_levels in smb2 getinfo test Signed-off-by: Andreas Schneider Reviewed-by: Douglas Bagnall --- diff --git a/source4/torture/smb2/getinfo.c b/source4/torture/smb2/getinfo.c index f6ef0a55103..d2307ab20a1 100644 --- a/source4/torture/smb2/getinfo.c +++ b/source4/torture/smb2/getinfo.c @@ -36,7 +36,7 @@ static struct { union smb_fileinfo finfo; union smb_fileinfo dinfo; } file_levels[] = { -#define LEVEL(x) #x, x +#define LEVEL(x) .name = #x, .level = x { LEVEL(RAW_FILEINFO_BASIC_INFORMATION) }, { LEVEL(RAW_FILEINFO_STANDARD_INFORMATION) }, { LEVEL(RAW_FILEINFO_INTERNAL_INFORMATION) },