Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Elsa Gonsiorowski
codes
Commits
4324c15f
Commit
4324c15f
authored
Aug 14, 2013
by
Misbah Mubarak
Browse files
Removing const from function return types to get rid of warnings
parent
d90083f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
codes/model-net.h
View file @
4324c15f
...
...
@@ -125,7 +125,7 @@ void model_net_event_rc(
/* returns pointer to LP information for simplenet module */
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
);
...
...
src/models/networks/model-net/model-net.c
View file @
4324c15f
...
...
@@ -21,7 +21,7 @@ extern struct model_net_method dragonfly_method;
static
struct
model_net_method
*
method_array
[]
=
{
&
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
packet_size
,
...
...
@@ -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*/
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
;
}
...
...
@@ -300,7 +299,7 @@ void model_net_event_rc(
}
/* 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 dragonfly and torus network models
...
...
@@ -314,7 +313,7 @@ static const int model_net_get_msg_sz(int net_id)
}
/* 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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment