[openib-general] [PATCH] osmtest/osmt_service.c: Eliminate compile warnings with gcc version4.0.0 20050519 (Red Hat 4.0.0-8)
Hal Rosenstock
halr at voltaire.com
Thu Dec 15 13:32:44 PST 2005
osmtest/osmt_service.c: Eliminate compile warnings with gcc version4.0.0
20050519 (Red Hat 4.0.0-8)
Signed-off-by: Hal Rosenstock <halr at voltaire.com>
Index: osmt_service.c
===================================================================
--- osmt_service.c (revision 4478)
+++ osmt_service.c (working copy)
@@ -1071,7 +1071,8 @@ osmt_get_all_services_and_check_names( I
"osmt_get_all_services_and_check_names: "
"-I- Comparing source name : >%s<, with record name : >%s<, idx : %d\n",
p_valid_service_names_arr[j],p_rec->service_name, p_checked_names[j]);
- if ( strcmp(p_valid_service_names_arr[j],p_rec->service_name) == 0 )
+ if ( strcmp((const char *)p_valid_service_names_arr[j],
+ (const char *)p_rec->service_name) == 0 )
{
osm_log( &p_osmt->log, OSM_LOG_VERBOSE,
"osmt_get_all_services_and_check_names: "
More information about the general
mailing list