Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix the ugly case of reference to dynamic array.
[simgrid.git] / testsuite / gras / trp_tcp_server.c
index 7c33b47..a67bb45 100644 (file)
@@ -19,7 +19,7 @@ int main(int argc,char *argv[]) {
   gras_error_t errcode;
   char data_recv[256];
 
-  gras_init_defaultlog(argc,argv,"trp.thresh=debug");
+  gras_init_defaultlog(&argc,argv,"trp.thresh=debug");
 
   fprintf(stderr,"===[SERVER]=== Create the socket\n");
   TRYFAIL(gras_socket_server(55555,&sock));
@@ -36,5 +36,6 @@ int main(int argc,char *argv[]) {
   fprintf(stderr,"===[SERVER]=== Exiting successfully\n");
   gras_socket_close(&sock);
 
+  gras_exit();
   return 0;
 }