From fb15b95bc5fe11e8ebbd4bfe5f29b4e454f3aee4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 22 Jan 2004 01:12:43 +0000 Subject: added a little bit of const magic to get rid of the data in librpc/gen_ndr/*.o (This used to be commit 866ef2edab91996964c8b43dbdd417f5908a00e1) --- source4/build/pidl/parser.pm | 2 +- source4/librpc/rpc/dcerpc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/build/pidl/parser.pm b/source4/build/pidl/parser.pm index d094b5e5b5..12dd1918a2 100644 --- a/source4/build/pidl/parser.pm +++ b/source4/build/pidl/parser.pm @@ -1326,7 +1326,7 @@ sub FunctionTable($) my @e = split / /, $if_endpoints; my $endpoint_count = $#e + 1; - pidl "static const char *$interface->{NAME}\_endpoint_strings[] = {\n\t"; + pidl "static const char * const $interface->{NAME}\_endpoint_strings[] = {\n\t"; for (my $i=0; $i < $#e; $i++) { pidl "\"$e[$i]\", "; } diff --git a/source4/librpc/rpc/dcerpc.h b/source4/librpc/rpc/dcerpc.h index fdd17fcbb3..c5cf07ddba 100644 --- a/source4/librpc/rpc/dcerpc.h +++ b/source4/librpc/rpc/dcerpc.h @@ -86,7 +86,7 @@ struct dcerpc_interface_call { struct dcerpc_endpoint_list { uint32 count; - const char **names; + const char * const *names; }; struct dcerpc_interface_table { -- cgit