From 84a0b9d1947db0f61f3a82fb6df02add111fd62f Mon Sep 17 00:00:00 2001 From: mquinson Date: Fri, 9 Apr 2004 18:31:01 +0000 Subject: [PATCH 1/1] cosmetics 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 | 6 ++++-- src/gras/Transport/transport_private.h | 16 ++++++++-------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/src/gras/Transport/rl_transport.c b/src/gras/Transport/rl_transport.c index cd732c979d..fe19f91ab7 100644 --- a/src/gras/Transport/rl_transport.c +++ b/src/gras/Transport/rl_transport.c @@ -130,7 +130,8 @@ gras_trp_select(double timeout, 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", @@ -138,7 +139,8 @@ gras_trp_select(double timeout, 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) { diff --git a/src/gras/Transport/transport_private.h b/src/gras/Transport/transport_private.h index 56e2f165af..f94b58b238 100644 --- a/src/gras/Transport/transport_private.h +++ b/src/gras/Transport/transport_private.h @@ -26,17 +26,17 @@ extern gras_dynar_t *_gras_trp_sockets; /* all existing sockets */ */ 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 */ }; -- 2.20.1