krb5_plugin: Use C99 initializer
authorChristof Schmitt <cs@samba.org>
Mon, 11 Nov 2019 20:08:28 +0000 (13:08 -0700)
committerChristof Schmitt <cs@samba.org>
Wed, 13 Nov 2019 17:49:38 +0000 (17:49 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14179

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
nsswitch/krb5_plugin/winbind_krb5_locator.c

index 518c871b248658ca39fc4407719d16a09c898e26..a31c08223708d45491770433ead1bfc3a870679b 100644 (file)
@@ -409,10 +409,10 @@ static krb5_error_code smb_krb5_locator_lookup(void *private_data,
 #endif
 
 const krb5plugin_service_locate_ftable SMB_KRB5_LOCATOR_SYMBOL_NAME = {
-       0, /* version */
-       smb_krb5_locator_init,
-       smb_krb5_locator_close,
-       smb_krb5_locator_lookup,
+       .minor_version  = 0,
+       .init           = smb_krb5_locator_init,
+       .fini           = smb_krb5_locator_close,
+       .lookup = smb_krb5_locator_lookup,
 };
 
 #endif