From: Arnaud Giersch Date: Wed, 28 Nov 2012 17:19:17 +0000 (+0100) Subject: Define functions as static. X-Git-Tag: v3_9_rc1~86^2~257 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b77216e633e2d4e03cfb7778436b2464e7e24b70 Define functions as static. Fix build errors from -Werror=missing-prototypes. --- diff --git a/examples/msg/chainsend/broadcaster.c b/examples/msg/chainsend/broadcaster.c index c0fe0d85a4..c953e369b8 100644 --- a/examples/msg/chainsend/broadcaster.c +++ b/examples/msg/chainsend/broadcaster.c @@ -18,7 +18,7 @@ xbt_dynar_t build_hostlist_from_hostcount(int hostcount) return host_list; } -void delete_hostlist(xbt_dynar_t h) +static void delete_hostlist(xbt_dynar_t h) { xbt_dynar_free(&h); } diff --git a/examples/msg/chainsend/peer.c b/examples/msg/chainsend/peer.c index 7711068349..107d25fdb2 100644 --- a/examples/msg/chainsend/peer.c +++ b/examples/msg/chainsend/peer.c @@ -14,7 +14,7 @@ void peer_init_chain(peer_t peer, message_t msg) peer->init = 1; } -void peer_forward_msg(peer_t peer, message_t msg) +static void peer_forward_msg(peer_t peer, message_t msg) { msg_task_t task = task_message_data_new(peer->me, peer->next, NULL, 0); msg_comm_t comm = NULL;