ctdb: Use C99 initializer for last element of tunables
authorAndreas Schneider <asn@samba.org>
Thu, 13 Dec 2018 09:34:11 +0000 (10:34 +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/common/tunable.c

index f516d8c537424ce77bb8d2d4f703f934e2a02782..8d475858c5f3dc499d21ed3ccf13ba523c44db2b 100644 (file)
@@ -157,7 +157,7 @@ static struct {
                offsetof(struct ctdb_tunable_list, ip_alloc_algorithm) },
        { "AllowMixedVersions", 0, false,
                offsetof(struct ctdb_tunable_list, allow_mixed_versions) },
-       { NULL, 0, true, }
+       { .obsolete = true, }
 };
 
 void ctdb_tunable_set_defaults(struct ctdb_tunable_list *tun_list)