From 0d31145e9defc7d58953a13c422ccac407ce6b61 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Fri, 31 Jul 2015 14:45:22 +1200 Subject: [PATCH] GSSAPI: generate full NULL structure initializers in gen-oid.pl As seen in commit cc47c8fa7 (Roland C. Dowdeswell , "Turn on -Wextra -Wno-sign-compare -Wno-unused-paramter and fix issues"), compilers can be persuaded to dislike a single {NULL} and prefer {NULL, NULL, NULL, NULL}. That patch altered the C code directly; here we change the generating file to match. Signed-off-by: Douglas Bagnall --- lib/gssapi/gen-oid.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gssapi/gen-oid.pl b/lib/gssapi/gen-oid.pl index fa8faeac4..a2341ad98 100644 --- a/lib/gssapi/gen-oid.pl +++ b/lib/gssapi/gen-oid.pl @@ -130,7 +130,7 @@ foreach my $k (sort keys %types) { printf " { %s, \"%s\", %s, %s },\n", $$m->{oid}, $$m->{oid}, $$m->{short}, $$m->{long}; } } - printf " { NULL }\n"; + printf " { NULL, NULL, NULL, NULL }\n"; printf "};\n\n"; }