Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
be more explicit when we die because we got an unknown message type (plus eclipse...
[simgrid.git] / src / gras / Transport / transport.c
index ad39c5c..2c532f3 100644 (file)
@@ -301,9 +301,8 @@ gras_socket_client_ext(const char *host,
 }
 
 /**
- * gras_socket_server:
- *
- * Opens a server socket and make it ready to be listened to.
+ * @brief Opens a server socket and make it ready to be listened to.
+ * 
  * In real life, you'll get a TCP socket.
  */
 gras_socket_t
@@ -331,7 +330,7 @@ gras_socket_client_from_string(const char *host) {
 void gras_socket_close(gras_socket_t sock) {
   xbt_dynar_t sockets = ((gras_trp_procdata_t) gras_libdata_by_id(gras_trp_libdata_id))->sockets;
   gras_socket_t sock_iter = NULL;
-  int cursor;
+  unsigned int cursor;
 
   XBT_IN;
   VERB1("Close %p",sock);
@@ -558,7 +557,7 @@ gras_socket_t gras_socket_meas_accept(gras_socket_t peer){
 /*
  * Creating procdata for this module
  */
-static void *gras_trp_procdata_new() {
+static void *gras_trp_procdata_new(void) {
    gras_trp_procdata_t res = xbt_new(s_gras_trp_procdata_t,1);
    
    res->name = xbt_strdup("gras_trp");
@@ -584,7 +583,7 @@ void gras_trp_socketset_dump(const char *name) {
   gras_trp_procdata_t procdata = 
     (gras_trp_procdata_t)gras_libdata_by_id(gras_trp_libdata_id);
 
-  int it;
+  unsigned int it;
   gras_socket_t s;
 
   INFO1("** Dump the socket set %s",name);