Skip to content

Commit 65bb9e6

Browse files
committed
MPI_Precv_init: the buf arg is not const
According to the latest MPI-4.0 draft (as of May 2021), the "buf" arg to MPI_Precv_init() is not const. Signed-off-by: Jeff Squyres <jsquyres@cisco.com>
1 parent e97c4e7 commit 65bb9e6

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ompi/include/mpi.h.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* University of Stuttgart. All rights reserved.
1010
* Copyright (c) 2004-2005 The Regents of the University of California.
1111
* All rights reserved.
12-
* Copyright (c) 2007-2020 Cisco Systems, Inc. All rights reserved
12+
* Copyright (c) 2007-2021 Cisco Systems, Inc. All rights reserved
1313
* Copyright (c) 2008-2009 Sun Microsystems, Inc. All rights reserved.
1414
* Copyright (c) 2009-2012 Oak Rigde National Laboratory. All rights reserved.
1515
* Copyright (c) 2011-2020 Sandia National Laboratories. All rights reserved.
@@ -1705,7 +1705,7 @@ OMPI_DECLSPEC int MPI_Pready(int partitions, MPI_Request request);
17051705
OMPI_DECLSPEC int MPI_Pready_range(int partition_low, int partition_high,
17061706
MPI_Request request);
17071707
OMPI_DECLSPEC int MPI_Pready_list(int length, int partition_list[], MPI_Request request);
1708-
OMPI_DECLSPEC int MPI_Precv_init(const void* buf, int partitions, MPI_Count count,
1708+
OMPI_DECLSPEC int MPI_Precv_init(void* buf, int partitions, MPI_Count count,
17091709
MPI_Datatype datatype, int source, int tag, MPI_Comm comm,
17101710
MPI_Request *request);
17111711
OMPI_DECLSPEC int MPI_Probe(int source, int tag, MPI_Comm comm, MPI_Status *status);
@@ -2321,7 +2321,7 @@ OMPI_DECLSPEC int PMPI_Isend(const void *buf, int count, MPI_Datatype datatype,
23212321
int tag, MPI_Comm comm, MPI_Request *request);
23222322
OMPI_DECLSPEC int PMPI_Issend(const void *buf, int count, MPI_Datatype datatype, int dest,
23232323
int tag, MPI_Comm comm, MPI_Request *request);
2324-
OMPI_DECLSPEC int PMPI_Precv_init(const void* buf, int partitions, MPI_Count count,
2324+
OMPI_DECLSPEC int PMPI_Precv_init(void* buf, int partitions, MPI_Count count,
23252325
MPI_Datatype datatype, int source, int tag, MPI_Comm comm,
23262326
MPI_Request *request);
23272327
OMPI_DECLSPEC int PMPI_Psend_init(const void* buf, int partitions, MPI_Count count,

ompi/mpi/c/precv_init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* University of Stuttgart. All rights reserved.
1111
* Copyright (c) 2004-2005 The Regents of the University of California.
1212
* All rights reserved.
13-
* Copyright (c) 2006 Cisco Systems, Inc. All rights reserved.
13+
* Copyright (c) 2006-2021 Cisco Systems, Inc. All rights reserved.
1414
* Copyright (c) 2013-2015 Los Alamos National Security, LLC. All rights
1515
* reserved.
1616
* Copyright (c) 2015 Research Organization for Information Science
@@ -43,7 +43,7 @@
4343
static const char FUNC_NAME[] = "MPI_Precv_init";
4444

4545

46-
int MPI_Precv_init(const void* buf, int partitions, MPI_Count count, MPI_Datatype datatype, int source, int tag, MPI_Comm comm, MPI_Request *request)
46+
int MPI_Precv_init(void* buf, int partitions, MPI_Count count, MPI_Datatype datatype, int source, int tag, MPI_Comm comm, MPI_Request *request)
4747
{
4848
int rc;
4949

0 commit comments

Comments
 (0)