From: mquinson Date: Tue, 6 Jul 2004 01:22:43 +0000 (+0000) Subject: gras_trp_socket_new is in charge of pushing it into the set of known sockets X-Git-Tag: v3.3~5171 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/f4de18e5861001f25ee66b2ab3f78c9257d52728 gras_trp_socket_new is in charge of pushing it into the set of known sockets git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@175 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/src/gras/Transport/transport_plugin_file.c b/src/gras/Transport/transport_plugin_file.c index ae1866e535..6a52c0870b 100644 --- a/src/gras/Transport/transport_plugin_file.c +++ b/src/gras/Transport/transport_plugin_file.c @@ -107,14 +107,7 @@ gras_socket_client_from_file(const char*path, (*dst)->incoming?'y':'n', (*dst)->outgoing?'y':'n', (*dst)->accepting?'y':'n'); - /* register socket */ - errcode = gras_dynar_push(gras_socketset_get(),dst); - if (errcode != no_error) { - free(*dst); - *dst = NULL; - return errcode; - } - + return no_error; } @@ -158,14 +151,6 @@ gras_socket_server_from_file(const char*path, (*dst)->outgoing?'y':'n', (*dst)->accepting?'y':'n'); - /* register socket */ - errcode = gras_dynar_push(gras_socketset_get(),dst); - if (errcode != no_error) { - free(*dst); - *dst = NULL; - return errcode; - } - return no_error; }