Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
In READ and WRITE mode (instead of RW), the remote_arch is the first char of the...
[simgrid.git] / testsuite / gras / trp_file_client.c
index e458aa7..b3cb066 100644 (file)
 //GRAS_LOG_NEW_DEFAULT_CATEGORY(test);
 
 int main(int argc,char *argv[]) {
-  gras_socket_t * sock;
+  gras_socket_t *sock;
   gras_error_t errcode;
   char data_send[256];
 
+  memset(data_send,0,sizeof(data_send));
   gras_init_defaultlog(&argc,argv,"trp.thresh=debug");
 
   fprintf(stderr,"===[CLIENT]=== Contact the server\n");
@@ -29,7 +30,7 @@ int main(int argc,char *argv[]) {
   TRYFAIL(gras_trp_chunk_send(sock,data_send, sizeof(data_send)));
   
   fprintf(stderr,"===[CLIENT]=== Exiting successfully\n");
-  gras_socket_close(&sock);
+  gras_socket_close(sock);
    
   gras_exit();
   return 0;