Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove stupid "if" that prevents from displaying the help correctly and use die inste...
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 16 Aug 2010 22:23:47 +0000 (22:23 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 16 Aug 2010 22:23:47 +0000 (22:23 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@8159 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/surf/surf_routing.c

index e55fd87..021d218 100644 (file)
@@ -51,9 +51,8 @@ void routing_model_create(size_t size_of_links, void* loopback) {
   }
   fprintf(stderr,"Routing model %s not found. Existing models:\n",wanted);
   for (cpt=0;models[cpt].name;cpt++)
-    if (!strcmp(wanted,models[cpt].name))
-      fprintf(stderr,"   %s: %s\n",models[cpt].name,models[cpt].desc);
-  exit(1);
+    fprintf(stderr,"   %s: %s\n",models[cpt].name,models[cpt].desc);
+  xbt_die("Invalid model.");
 }
 
 /* ************************************************************************** */