Commit 4324c15f authored by Misbah Mubarak's avatar Misbah Mubarak

Removing const from function return types to get rid of warnings

parent d90083f7
...@@ -125,7 +125,7 @@ void model_net_event_rc( ...@@ -125,7 +125,7 @@ void model_net_event_rc(
/* returns pointer to LP information for simplenet module */ /* returns pointer to LP information for simplenet module */
const tw_lptype* model_net_get_lp_type(int net_id); const tw_lptype* model_net_get_lp_type(int net_id);
const int model_net_get_packet_size(int net_id); int model_net_get_packet_size(int net_id);
void model_net_add_lp_type(int net_id); void model_net_add_lp_type(int net_id);
......
...@@ -21,7 +21,7 @@ extern struct model_net_method dragonfly_method; ...@@ -21,7 +21,7 @@ extern struct model_net_method dragonfly_method;
static struct model_net_method* method_array[] = static struct model_net_method* method_array[] =
{&simplenet_method, &torus_method, &dragonfly_method, NULL}; {&simplenet_method, &torus_method, &dragonfly_method, NULL};
static const int model_net_get_msg_sz(int net_id); static int model_net_get_msg_sz(int net_id);
int model_net_setup(char* name, int model_net_setup(char* name,
int packet_size, int packet_size,
...@@ -99,7 +99,6 @@ void model_net_event( ...@@ -99,7 +99,6 @@ void model_net_event(
/* Number of packets and packet ID is passed to the underlying network to mark the final packet for local event completion*/ /* Number of packets and packet ID is passed to the underlying network to mark the final packet for local event completion*/
method_array[net_id]->model_net_method_packet_event(category, final_dest_lp, packet_size, remote_event_size, remote_event, self_event_size, self_event, sender, last); method_array[net_id]->model_net_method_packet_event(category, final_dest_lp, packet_size, remote_event_size, remote_event, self_event_size, self_event, sender, last);
} }
return; return;
} }
...@@ -300,7 +299,7 @@ void model_net_event_rc( ...@@ -300,7 +299,7 @@ void model_net_event_rc(
} }
/* returns the message size, can be either simplenet, dragonfly or torus message size*/ /* returns the message size, can be either simplenet, dragonfly or torus message size*/
static const int model_net_get_msg_sz(int net_id) static int model_net_get_msg_sz(int net_id)
{ {
// TODO: Add checks on network name // TODO: Add checks on network name
// TODO: Add dragonfly and torus network models // TODO: Add dragonfly and torus network models
...@@ -314,7 +313,7 @@ static const int model_net_get_msg_sz(int net_id) ...@@ -314,7 +313,7 @@ static const int model_net_get_msg_sz(int net_id)
} }
/* returns the packet size in the modelnet struct */ /* returns the packet size in the modelnet struct */
const int model_net_get_packet_size(int net_id) int model_net_get_packet_size(int net_id)
{ {
if(net_id < 0 || net_id > NUM_NETS) if(net_id < 0 || net_id > NUM_NETS)
{ {
......
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