Commit d560b7bb authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

widl: Make the generated string pointers const as well.

parent 87ca1b94
...@@ -3348,7 +3348,7 @@ void write_endpoints( FILE *f, const char *prefix, const str_list_t *list ) ...@@ -3348,7 +3348,7 @@ void write_endpoints( FILE *f, const char *prefix, const str_list_t *list )
const char *p; const char *p;
/* this should be an array of RPC_PROTSEQ_ENDPOINT but we want const strings */ /* this should be an array of RPC_PROTSEQ_ENDPOINT but we want const strings */
print_file( f, 0, "static const unsigned char * %s__RpcProtseqEndpoint[][2] =\n{\n", prefix ); print_file( f, 0, "static const unsigned char * const %s__RpcProtseqEndpoint[][2] =\n{\n", prefix );
LIST_FOR_EACH_ENTRY( endpoint, list, const struct str_list_entry_t, entry ) LIST_FOR_EACH_ENTRY( endpoint, list, const struct str_list_entry_t, entry )
{ {
print_file( f, 1, "{ (const unsigned char *)\"" ); print_file( f, 1, "{ (const unsigned char *)\"" );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment