Skip to contentSkip to conversation

fixed deprecated conversion from string constant to char* warning

PATCH New Alex Netes 1 participant 1 message Sep 11, 2011 InfiniBand

lore
Share & tools
lore

Alex Netes

author
#0 lore raw

PATCH 1/1 fixed deprecated conversion from string constant to char* warning

---
 include/opensm/osm_perfmgr.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
include/opensm/osm_perfmgr.h +2 -2
index 67c0ce4..86066a7 100644
@@ -179,7 +179,7 @@ inline static osm_perfmgr_state_t osm_perfmgr_get_state(osm_perfmgr_t * perfmgr)
 	return perfmgr->state;
 }
 
-inline static char *osm_perfmgr_get_state_str(osm_perfmgr_t * p_perfmgr)
+inline static const char *osm_perfmgr_get_state_str(osm_perfmgr_t * p_perfmgr)
 {
 	switch (p_perfmgr->state) {
 	case PERFMGR_STATE_DISABLE:
@@ -195,7 +195,7 @@ inline static char *osm_perfmgr_get_state_str(osm_perfmgr_t * p_perfmgr)
 	return "UNKNOWN";
 }
 
-inline static char *osm_perfmgr_get_sweep_state_str(osm_perfmgr_t * perfmgr)
+inline static const char *osm_perfmgr_get_sweep_state_str(osm_perfmgr_t * perfmgr)
 {
 	switch (perfmgr->sweep_state) {
 	case PERFMGR_SWEEP_SLEEP:
Signature · 7 lines
1.7.6

-- Alex
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html