[openib-general] [PATCH] osm: trivial missing cast in osmt_service call for memcmp
Eitan Zahavi
eitan at mellanox.co.il
Mon Jun 5 05:59:45 PDT 2006
Hi Hal
Last one of my cleaning up compilation warnings I found a missing
cast in osmtest service name compare.
Eitan
Signed-off-by: Eitan Zahavi <eitan at mellanox.co.il>
Index: osmtest/osmt_service.c
===================================================================
--- osmtest/osmt_service.c (revision 7542)
+++ osmtest/osmt_service.c (working copy)
@@ -1138,8 +1138,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((char *)p_valid_service_names_arr[j],
+ (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