]> AND Public Git Repository - simgrid.git/blobdiff - examples/msg/bittorrent/bittorrent.c
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Pull changes to push BitTorrent fix
[simgrid.git] / examples / msg / bittorrent / bittorrent.c
index ba52ea4a217595e82eb53288436b0fcc716aae32..e0e4c68689242affb69f824f598fb7351cc6b981 100644 (file)
 /**
  * Bittorrent example launcher
  */
-int main(int argc, char *argv[]) {
+int main(int argc, char *argv[])
+{
   MSG_init(&argc, argv);
 
   /* Check the arguments */
   if (argc < 3) {
-    printf("Usage: %s platform_file deployment_file \n",argv[0]);
+    printf("Usage: %s platform_file deployment_file \n", argv[0]);
     return -1;
   }
 
@@ -24,14 +25,12 @@ int main(int argc, char *argv[]) {
 
   MSG_create_environment(platform_file);
 
-  MSG_function_register("tracker",tracker);
-  MSG_function_register("peer",peer);
+  MSG_function_register("tracker", tracker);
+  MSG_function_register("peer", peer);
 
   MSG_launch_application(deployment_file);
 
-  msg_error_t res = MSG_main();
-
-  MSG_clean();
+  MSG_main();
 
   return 0;
 }