s3:lib: Use C99 initializer for audit_category_tab
authorAndreas Schneider <asn@samba.org>
Wed, 12 Dec 2018 20:32:47 +0000 (21:32 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 28 Jan 2019 09:29:23 +0000 (10:29 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source3/lib/audit.c

index e0c03f82e9d0ed065e4e8a771c254fc8737cf34a..f0dc5c2e8e663a507aa019cadfd1d4099cbd944e 100644 (file)
@@ -53,7 +53,7 @@ static const struct audit_category_tab {
        { LSA_AUDIT_CATEGORY_ACCOUNT_LOGON, 
         "LSA_AUDIT_CATEGORY_ACCOUNT_LOGON", 
         "ACCOUNT", "Account logon events" },
-       { 0, NULL, NULL }
+       { .category = 0 }
 };
 
 const char *audit_category_str(uint32_t category)