Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 9 Apr 2004 18:31:01 +0000 (18:31 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 9 Apr 2004 18:31:01 +0000 (18:31 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@80 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/gras/Transport/rl_transport.c
src/gras/Transport/transport_private.h

index cd732c9..fe19f91 100644 (file)
@@ -130,7 +130,8 @@ gras_trp_select(double timeout,
     ready = select(max_fds, &FDS, NULL, NULL, p_tout);
     if (ready == -1) {
       switch (errno) {
     ready = select(max_fds, &FDS, NULL, NULL, p_tout);
     if (ready == -1) {
       switch (errno) {
-      case  EINTR: /* a signal we don't care about occured. We don't care */
+      case  EINTR: /* a signal we don't care about occured. we don't care */
+       /* if we cared, we would have set an handler */
        continue;
       case EINVAL: /* invalid value */
        RAISE3(system_error,"invalid select: nb fds: %d, timeout: %d.%d",
        continue;
       case EINVAL: /* invalid value */
        RAISE3(system_error,"invalid select: nb fds: %d, timeout: %d.%d",
@@ -138,7 +139,8 @@ gras_trp_select(double timeout,
       case ENOMEM: 
        RAISE_MALLOC;
       default:
       case ENOMEM: 
        RAISE_MALLOC;
       default:
-       RAISE2(system_error,"Error during select: %s (%d)",strerror(errno),errno);
+       RAISE2(system_error,"Error during select: %s (%d)",
+              strerror(errno),errno);
       }
       RAISE_IMPOSSIBLE;
     } else if (ready == 0) {
       }
       RAISE_IMPOSSIBLE;
     } else if (ready == 0) {
index 56e2f16..f94b58b 100644 (file)
@@ -26,17 +26,17 @@ extern gras_dynar_t *_gras_trp_sockets; /* all existing sockets */
  */
 
 struct s_gras_socket  {
  */
 
 struct s_gras_socket  {
-   gras_trp_plugin_t *plugin;
+  gras_trp_plugin_t *plugin;
    
    
-   int incoming; /* true if incoming (server) sock, false if client sock */
-   int accepting; /* true if master incoming sock in tcp */
+  int incoming; /* true if incoming (server) sock, false if client sock */
+  int accepting; /* true if master incoming sock in tcp */
    
    
-   int  sd;
-   int  port; /* port on this side */
-   int  peer_port; /* port on the other side */
-   char *peer_name; /* hostname of the other side */
+  int  sd;
+  int  port; /* port on this side */
+  int  peer_port; /* port on the other side */
+  char *peer_name; /* hostname of the other side */
 
 
-   void *specific; /* plugin specific data */
+  void *specific; /* plugin specific data */
 };
        
 
 };