Commit e7f63627 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Remove unneeded const qualification.

* While it would be desirable to have buffer declared const when the
  underlying MPI allows const buffer parameters to MPI_Unpack,
  that is not guaranteed to work so we keep the parameter declared void *
  instead of const void *.
parent 3e279c9f
......@@ -321,7 +321,7 @@ isend_intersections(size_t num_msg,
static void
unpack_dist_dir(struct Xt_xmdd_txstat tx_stat,
const int (*sizes)[SEND_SIZE_ASIZE],
const void *buffer,
void *buffer,
struct dist_dir **dist_dir,
MPI_Comm comm)
{
......@@ -336,7 +336,7 @@ unpack_dist_dir(struct Xt_xmdd_txstat tx_stat,
int rank = sizes[i][SEND_NUM];
dist_dir_->entries[i].rank = rank;
dist_dir_->entries[i].list
= xt_idxlist_unpack((void *)buffer, (int)buf_size, &position, comm);
= xt_idxlist_unpack(buffer, (int)buf_size, &position, comm);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment