From 140855964562230c4bc62e5b66b5d2e965292580 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Wed, 1 Jul 2009 13:26:07 +0000 Subject: [PATCH] Weird - restore Shiqing's typecast fixes. No idea how they got reverted in that last commit This commit was SVN r21573. --- ompi/tools/ompi_info/param.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ompi/tools/ompi_info/param.c b/ompi/tools/ompi_info/param.c index fc20f402aa..3af11ce224 100644 --- a/ompi/tools/ompi_info/param.c +++ b/ompi/tools/ompi_info/param.c @@ -116,7 +116,7 @@ void ompi_info_do_params(bool want_all_in, bool want_internal) if (want_all) { for (i = 0; i < mca_types.size; ++i) { - if (NULL == (type = opal_pointer_array_get_item(&mca_types, i))) { + if (NULL == (type = (char *)opal_pointer_array_get_item(&mca_types, i))) { continue; } ompi_info_show_mca_params(info, type, ompi_info_component_all, want_internal); @@ -127,7 +127,7 @@ void ompi_info_do_params(bool want_all_in, bool want_internal) component = opal_cmd_line_get_param(ompi_info_cmd_line, "param", (int)i, 1); for (found = false, i = 0; i < mca_types.size; ++i) { - if (NULL == (str = opal_pointer_array_get_item(&mca_types, i))) { + if (NULL == (str = (char *)opal_pointer_array_get_item(&mca_types, i))) { continue; } if (0 == strcmp(str, type)) {