Whamcloud - gitweb
LU-6210 utils: Change positional struct initializers to C99
[fs/lustre-release.git] / lustre / utils / gss / svcgssd_mech2file.c
index ca98f42..43c0d78 100644 (file)
@@ -50,12 +50,47 @@ struct oid2mech {
 };
 
 static const struct oid2mech o2m[] = {
 };
 
 static const struct oid2mech o2m[] = {
-       {{9, "\052\206\110\206\367\022\001\002\002"}, "krb5"},
-       {{7, "\053\006\001\005\005\001\003"}, "spkm3"},
-       {{7, "\053\006\001\005\005\001\009"}, "lipkey"},
-       {{12, "\053\006\001\004\001\311\146\215\126\001\000\000"}, "gssnull"},
-       {{12, "\053\006\001\004\001\311\146\215\126\001\000\001"}, "sk"},
-       {{0,0},""},
+       {
+               .mech = {
+                       .length = 9,
+                       .elements = "\052\206\110\206\367\022\001\002\002",
+               },
+               .mechname = "krb5",
+       },
+       {
+               .mech = {
+                       .length = 7,
+                       .elements = "\053\006\001\005\005\001\003",
+               },
+               .mechname = "spkm3",
+       },
+       {
+               .mech = {
+                       .length = 7,
+                       .elements = "\053\006\001\005\005\001\009",
+               },
+               .mechname = "lipkey",
+       },
+       {
+               .mech = {
+                       .length = 12,
+                       .elements = "\053\006\001\004\001\311\146\215\126\001\000\000",
+               },
+               .mechname = "gssnull",
+       },
+       {
+               .mech = {
+                       .length = 12,
+                       .elements = "\053\006\001\004\001\311\146\215\126\001\000\001",
+               },
+               .mechname = "sk",
+       },
+       {
+               .mech = {
+                       .length  = 0,
+               },
+               .mechname = "",
+       }
 };
 
 /*
 };
 
 /*