diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-01-31 18:54:28 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-01-31 18:54:28 (GMT) |
commit | 7388e8a3e432d6c0e37a19da098b4cddd3aa3925 (patch) | |
tree | e8c8c179510f0cac63ff985b2ae518d4cf3fdbac /src/H5FDmpi.c | |
parent | 5646fd9b5efb6ae0065bc23f4082295ddd588e58 (diff) | |
download | hdf5-7388e8a3e432d6c0e37a19da098b4cddd3aa3925.zip hdf5-7388e8a3e432d6c0e37a19da098b4cddd3aa3925.tar.gz hdf5-7388e8a3e432d6c0e37a19da098b4cddd3aa3925.tar.bz2 |
[svn-r8139] Purpose:
Code cleanup
Description:
Clean up compiler warnings.
Platforms tested:
h5committested
Diffstat (limited to 'src/H5FDmpi.c')
-rw-r--r-- | src/H5FDmpi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/H5FDmpi.c b/src/H5FDmpi.c index 380701d..7472575 100644 --- a/src/H5FDmpi.c +++ b/src/H5FDmpi.c @@ -131,20 +131,20 @@ done: * *------------------------------------------------------------------------- */ -int +MPI_Comm H5FD_mpi_get_comm(const H5FD_t *file) { const H5FD_class_mpi_t *cls=(const H5FD_class_mpi_t *)(file->cls); - int ret_value; + MPI_Comm ret_value; - FUNC_ENTER_NOAPI(H5FD_mpi_get_comm, FAIL) + FUNC_ENTER_NOAPI(H5FD_mpi_get_comm, MPI_COMM_NULL) assert(file && cls); assert(cls->get_comm); /* All MPI drivers must implement this */ /* Dispatch to driver */ - if ((ret_value=(cls->get_comm)(file))<0) - HGOTO_ERROR(H5E_VFL, H5E_CANTGET, FAIL, "driver get_comm request failed") + if ((ret_value=(cls->get_comm)(file))==MPI_COMM_NULL) + HGOTO_ERROR(H5E_VFL, H5E_CANTGET, MPI_COMM_NULL, "driver get_comm request failed") done: FUNC_LEAVE_NOAPI(ret_value) |