Commit 740803a4 authored by Philip Carns's avatar Philip Carns

fix const warnings

- and use proper accessor fn for target_id
parent e051b1d3
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
static void my_rpc_shutdown_ult(hg_handle_t handle) static void my_rpc_shutdown_ult(hg_handle_t handle)
{ {
hg_return_t hret; hg_return_t hret;
struct hg_info *hgi; const struct hg_info *hgi;
margo_instance_id mid; margo_instance_id mid;
//printf("Got RPC request to shutdown\n"); //printf("Got RPC request to shutdown\n");
......
...@@ -38,7 +38,7 @@ void svc1_do_thing(margo_instance_id mid, hg_addr_t svr_addr, uint32_t mplex_id) ...@@ -38,7 +38,7 @@ void svc1_do_thing(margo_instance_id mid, hg_addr_t svr_addr, uint32_t mplex_id)
int ret; int ret;
hg_size_t size; hg_size_t size;
void* buffer; void* buffer;
struct hg_info *hgi; const struct hg_info *hgi;
/* allocate buffer for bulk transfer */ /* allocate buffer for bulk transfer */
size = 512; size = 512;
...@@ -57,7 +57,7 @@ void svc1_do_thing(margo_instance_id mid, hg_addr_t svr_addr, uint32_t mplex_id) ...@@ -57,7 +57,7 @@ void svc1_do_thing(margo_instance_id mid, hg_addr_t svr_addr, uint32_t mplex_id)
HG_BULK_READ_ONLY, &in.bulk_handle); HG_BULK_READ_ONLY, &in.bulk_handle);
assert(ret == 0); assert(ret == 0);
hgi->target_id = mplex_id; HG_Set_target_id(handle, mplex_id);
/* Send rpc. Note that we are also transmitting the bulk handle in the /* Send rpc. Note that we are also transmitting the bulk handle in the
* input struct. It was set above. * input struct. It was set above.
...@@ -86,7 +86,7 @@ void svc1_do_other_thing(margo_instance_id mid, hg_addr_t svr_addr, uint32_t mpl ...@@ -86,7 +86,7 @@ void svc1_do_other_thing(margo_instance_id mid, hg_addr_t svr_addr, uint32_t mpl
int ret; int ret;
hg_size_t size; hg_size_t size;
void* buffer; void* buffer;
struct hg_info *hgi; const struct hg_info *hgi;
/* allocate buffer for bulk transfer */ /* allocate buffer for bulk transfer */
size = 512; size = 512;
...@@ -105,7 +105,7 @@ void svc1_do_other_thing(margo_instance_id mid, hg_addr_t svr_addr, uint32_t mpl ...@@ -105,7 +105,7 @@ void svc1_do_other_thing(margo_instance_id mid, hg_addr_t svr_addr, uint32_t mpl
HG_BULK_READ_ONLY, &in.bulk_handle); HG_BULK_READ_ONLY, &in.bulk_handle);
assert(ret == 0); assert(ret == 0);
hgi->target_id = mplex_id; HG_Set_target_id(handle, mplex_id);
/* Send rpc. Note that we are also transmitting the bulk handle in the /* Send rpc. Note that we are also transmitting the bulk handle in the
* input struct. It was set above. * input struct. It was set above.
......
...@@ -18,7 +18,7 @@ static void svc1_do_thing_ult(hg_handle_t handle) ...@@ -18,7 +18,7 @@ static void svc1_do_thing_ult(hg_handle_t handle)
hg_size_t size; hg_size_t size;
void *buffer; void *buffer;
hg_bulk_t bulk_handle; hg_bulk_t bulk_handle;
struct hg_info *hgi; const struct hg_info *hgi;
margo_instance_id mid; margo_instance_id mid;
ABT_thread my_ult; ABT_thread my_ult;
ABT_xstream my_xstream; ABT_xstream my_xstream;
...@@ -77,7 +77,7 @@ static void svc1_do_other_thing_ult(hg_handle_t handle) ...@@ -77,7 +77,7 @@ static void svc1_do_other_thing_ult(hg_handle_t handle)
hg_size_t size; hg_size_t size;
void *buffer; void *buffer;
hg_bulk_t bulk_handle; hg_bulk_t bulk_handle;
struct hg_info *hgi; const struct hg_info *hgi;
margo_instance_id mid; margo_instance_id mid;
ABT_thread my_ult; ABT_thread my_ult;
ABT_xstream my_xstream; ABT_xstream my_xstream;
......
...@@ -18,7 +18,7 @@ static void svc2_do_thing_ult(hg_handle_t handle) ...@@ -18,7 +18,7 @@ static void svc2_do_thing_ult(hg_handle_t handle)
hg_size_t size; hg_size_t size;
void *buffer; void *buffer;
hg_bulk_t bulk_handle; hg_bulk_t bulk_handle;
struct hg_info *hgi; const struct hg_info *hgi;
margo_instance_id mid; margo_instance_id mid;
ABT_thread my_ult; ABT_thread my_ult;
ABT_xstream my_xstream; ABT_xstream my_xstream;
...@@ -77,7 +77,7 @@ static void svc2_do_other_thing_ult(hg_handle_t handle) ...@@ -77,7 +77,7 @@ static void svc2_do_other_thing_ult(hg_handle_t handle)
hg_size_t size; hg_size_t size;
void *buffer; void *buffer;
hg_bulk_t bulk_handle; hg_bulk_t bulk_handle;
struct hg_info *hgi; const struct hg_info *hgi;
margo_instance_id mid; margo_instance_id mid;
ABT_thread my_ult; ABT_thread my_ult;
ABT_xstream my_xstream; ABT_xstream my_xstream;
......
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