Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cosmetics: add some break statement at the end of switches' branches
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 8 Mar 2014 17:47:30 +0000 (18:47 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 8 Mar 2014 17:47:30 +0000 (18:47 +0100)
This is to please eclipse source analyser, and yeah this can reduce
future bug introduction if another case is added afterward... Well,
could be.

src/surf/platf_generator.c

index 756cf0a..fadf745 100644 (file)
@@ -670,6 +670,7 @@ void platf_generate(void) {
         node_data->router_id = bprintf("router-%d", ++last_router);
         router_parameters.id = node_data->router_id;
         sg_platf_new_router(&router_parameters);
+        break;
     }
   }
 
@@ -699,6 +700,7 @@ void platf_generate(void) {
         break;
       case HOST:
         route_parameters.src = src_data->host_parameters.id;
+        break;
     }
     switch(dst_data->kind) {
       case ROUTER:
@@ -709,6 +711,7 @@ void platf_generate(void) {
         break;
       case HOST:
         route_parameters.dst = dst_data->host_parameters.id;
+        break;
     }
     sg_platf_route_begin(&route_parameters);
     sg_platf_route_add_link(link_parameters->id, &route_parameters);