From de90bd8285151902b80a347cf6df8afbfbdd842b Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Wed, 1 Jul 2009 13:19:06 +0000 Subject: [PATCH] Add missing include file so that Absoft compile tests will pass This commit was SVN r21572. --- ompi/tools/ompi_info/param.c | 5 +++-- ompi/tools/ompi_info/version.c | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ompi/tools/ompi_info/param.c b/ompi/tools/ompi_info/param.c index a027f9e75e..fc20f402aa 100644 --- a/ompi/tools/ompi_info/param.c +++ b/ompi/tools/ompi_info/param.c @@ -21,6 +21,7 @@ #include "ompi_config.h" #include "mpi.h" +#include #include #if HAVE_UNISTD_H #include @@ -115,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 = (char *) opal_pointer_array_get_item(&mca_types, i))) { + if (NULL == (type = opal_pointer_array_get_item(&mca_types, i))) { continue; } ompi_info_show_mca_params(info, type, ompi_info_component_all, want_internal); @@ -126,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 = (char *) opal_pointer_array_get_item(&mca_types, i))) { + if (NULL == (str = opal_pointer_array_get_item(&mca_types, i))) { continue; } if (0 == strcmp(str, type)) { diff --git a/ompi/tools/ompi_info/version.c b/ompi/tools/ompi_info/version.c index dd1b0b5fc2..9ad993ad1f 100644 --- a/ompi/tools/ompi_info/version.c +++ b/ompi/tools/ompi_info/version.c @@ -21,6 +21,7 @@ #include "ompi_config.h" #include +#include #include "opal/version.h" #include "orte/version.h"