@@ -43,8 +43,8 @@ static int component_register (void);
4343static int component_select (struct ompi_win_t * win , void * * base , size_t size , int disp_unit ,
4444 struct ompi_communicator_t * comm , struct opal_info_t * info ,
4545 int flavor , int * model );
46- static char * component_set_blocking_fence_info (opal_infosubscriber_t * obj , char * key , char * val );
47- static char * component_set_alloc_shared_noncontig_info (opal_infosubscriber_t * obj , char * key , char * val );
46+ static const char * component_set_blocking_fence_info (opal_infosubscriber_t * obj , const char * key , const char * val );
47+ static const char * component_set_alloc_shared_noncontig_info (opal_infosubscriber_t * obj , const char * key , const char * val );
4848
4949
5050ompi_osc_sm_component_t mca_osc_sm_component = {
@@ -561,8 +561,8 @@ ompi_osc_sm_set_info(struct ompi_win_t *win, struct opal_info_t *info)
561561}
562562
563563
564- static char *
565- component_set_blocking_fence_info (opal_infosubscriber_t * obj , char * key , char * val )
564+ static const char *
565+ component_set_blocking_fence_info (opal_infosubscriber_t * obj , const char * key , const char * val )
566566{
567567 ompi_osc_sm_module_t * module = (ompi_osc_sm_module_t * ) ((struct ompi_win_t * ) obj )-> w_osc_module ;
568568/*
@@ -572,8 +572,8 @@ component_set_blocking_fence_info(opal_infosubscriber_t *obj, char *key, char *v
572572}
573573
574574
575- static char *
576- component_set_alloc_shared_noncontig_info (opal_infosubscriber_t * obj , char * key , char * val )
575+ static const char *
576+ component_set_alloc_shared_noncontig_info (opal_infosubscriber_t * obj , const char * key , const char * val )
577577{
578578
579579 ompi_osc_sm_module_t * module = (ompi_osc_sm_module_t * ) ((struct ompi_win_t * ) obj )-> w_osc_module ;
0 commit comments