Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
gras_socket_close now expect the socket to close (and not its address to
[simgrid.git] / testsuite / gras / trp_file_client.c
index e458aa7..b7f9eb3 100644 (file)
@@ -15,7 +15,7 @@
 //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];
 
@@ -29,7 +29,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;