added a little bit of const magic to get rid of the data in librpc/gen_ndr/*.o
authorAndrew Tridgell <tridge@samba.org>
Thu, 22 Jan 2004 01:12:43 +0000 (01:12 +0000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 22 Jan 2004 01:12:43 +0000 (01:12 +0000)
source/build/pidl/parser.pm
source/librpc/rpc/dcerpc.h

index d094b5e5b501950f4e59593dfe1311c26db29b47..12dd1918a2d61b3c3717a97f73651a50e401a868 100644 (file)
@@ -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]\", ";
        }
index fdd17fcbb39a0fe1cc6b5d27a2160bef7829c250..c5cf07ddba4ccbb38853b2d664dfad54ef1cc74b 100644 (file)
@@ -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 {