From: Martin Quinson Date: Wed, 1 Jun 2016 13:27:33 +0000 (+0200) Subject: cosmetics from patch review X-Git-Tag: v3_14~1061 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c02558d70f9c62f9f5d04f1830be4cf16ca84bc0 cosmetics from patch review --- diff --git a/examples/msg/app-chainsend/peer.c b/examples/msg/app-chainsend/peer.c index 70e7673bfb..f0f6fb1501 100644 --- a/examples/msg/app-chainsend/peer.c +++ b/examples/msg/app-chainsend/peer.c @@ -33,7 +33,7 @@ int peer_execute_task(peer_t peer, msg_task_t task) XBT_DEBUG("Peer %s got message of type %d\n", peer->me, msg->type); if (msg->type == MESSAGE_BUILD_CHAIN) peer_init_chain(peer, msg); - if (msg->type == MESSAGE_SEND_DATA){ + else if (msg->type == MESSAGE_SEND_DATA) { xbt_assert(peer->init, "peer_execute_task() failed: got msg_type %d before initialization", msg->type); if (peer->next != NULL) peer_forward_msg(peer, msg); diff --git a/examples/msg/trace-host-user-variables/trace-host-user-variables.c b/examples/msg/trace-host-user-variables/trace-host-user-variables.c index 82313df75a..89ec48da99 100644 --- a/examples/msg/trace-host-user-variables/trace-host-user-variables.c +++ b/examples/msg/trace-host-user-variables/trace-host-user-variables.c @@ -78,8 +78,7 @@ int main(int argc, char *argv[]) } //create a customized viva graph configuration file - FILE *fp = NULL; - fp = fopen ("viva_graph.plist", "w"); + FILE *fp = fopen ("viva_graph.plist", "w"); if (fp == NULL){ return 1; }