ctdb:tools: Use correct C99 initializer for ltdb_header
authorAndreas Schneider <asn@samba.org>
Mon, 14 Jan 2019 11:07:40 +0000 (12:07 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 28 Jan 2019 09:29:21 +0000 (10:29 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
ctdb/tools/ltdbtool.c

index e8465b2659fb7745708191fafeb6623d531c80e9..edb17ce55573ba1efae2f25f321e8a4f20c2fc9e 100644 (file)
@@ -39,7 +39,9 @@ union  ltdb_header {
 };
 
 static const union ltdb_header DEFAULT_HDR = {
-       .hdr.dmaster = -1,
+       .hdr = {
+               .dmaster = -1,
+       }
 };
 
 static int help(const char* cmd)