Skip to content
Snippets Groups Projects
Commit 7d5002be authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Add missing const specifiers.

parent e811b0b9
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@
* @remark ownership of the MPI requests is passed to the Xt_request object,
* however the caller remains the owner of the requests array
*/
Xt_request xt_request_msgs_new(int n, MPI_Request *requests,
Xt_request xt_request_msgs_new(int n, const MPI_Request requests[n],
MPI_Comm comm);
#endif // XT_REQUEST_MSGS_H
......
......@@ -71,13 +71,14 @@
* however the caller remain the owner of the packed_data and
* tmp_buffers array
*/
Xt_request xt_request_msgs_packed_new(int n_requests, MPI_Request * requests,
Xt_request xt_request_msgs_packed_new(int n_requests,
const MPI_Request requests[n_requests],
MPI_Comm comm, int n_packed,
int n_tmp_buffers,
MPI_Datatype * datatypes,
void ** packed_data,
void ** tmp_buffers,
void * unpacked_data);
const MPI_Datatype datatypes[n_packed],
void *packed_data[n_packed],
void *tmp_buffers[n_tmp_buffers],
void *unpacked_data);
#endif // XT_REQUEST_MSGS_PACKED_H
......
......@@ -69,18 +69,18 @@ static const struct Xt_request_vtable request_msgs_vtable = {
.test = xt_request_msgs_test,
};
typedef struct Xt_request_msgs_ * Xt_request_msgs;
typedef struct Xt_request_msgs_ *Xt_request_msgs;
struct Xt_request_msgs_ {
const struct Xt_request_vtable * vtable;
const struct Xt_request_vtable *vtable;
int n;
MPI_Comm comm;
int * ops_completed_buffer;
int *ops_completed_buffer;
MPI_Request requests[];
};
Xt_request xt_request_msgs_new(int n, MPI_Request * requests,
Xt_request xt_request_msgs_new(int n, const MPI_Request *requests,
MPI_Comm comm) {
assert(n >= 0);
......
......@@ -82,10 +82,11 @@ struct Xt_request_msgs_packed_ {
void * unpacked_data;
};
Xt_request xt_request_msgs_packed_new(int n_requests, MPI_Request * requests,
Xt_request xt_request_msgs_packed_new(int n_requests,
const MPI_Request *requests,
MPI_Comm comm, int n_packed,
int n_tmp_buffers,
MPI_Datatype * datatypes,
const MPI_Datatype * datatypes,
void ** packed_data,
void ** tmp_buffers,
void * unpacked_data) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment