Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Some work to get it ansi compliant, still much to doo
[simgrid.git] / src / gras / Transport / transport_plugin_buf.c
index 7826584..8ed2e02 100644 (file)
@@ -74,7 +74,6 @@ gras_error_t gras_trp_buf_init_sock(gras_socket_t *sock) {
   if (!data)
     RAISE_MALLOC;
   data->in.size  = 0;
   if (!data)
     RAISE_MALLOC;
   data->in.size  = 0;
-  //  data->buffsize = 32 * 1024 - 4; /* default socket buffsize (32k) - headers */ 
   data->buffsize = 100 * 1024 ; /* 100k */ 
 
   if (!(data->in.data = (char*)gras_malloc(data->buffsize)))
   data->buffsize = 100 * 1024 ; /* 100k */ 
 
   if (!(data->in.data = (char*)gras_malloc(data->buffsize)))
@@ -179,7 +178,7 @@ void gras_trp_buf_socket_close(gras_socket_t *sock){
     free(data->out.data);
   free(data);
 
     free(data->out.data);
   free(data);
 
-  return super->socket_close(sock);
+  super->socket_close(sock);
 }
 
 /**
 }
 
 /**