Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
This change allow to avoid the Visual C++ compiler Warning that occur when you try...
[simgrid.git] / src / gras / Transport / transport.c
index ad39c5c..21d7e23 100644 (file)
@@ -349,7 +349,7 @@ void gras_socket_close(gras_socket_t sock) {
   if (sock) {
        /* FIXME: Cannot get the dynar mutex, because it can be already locked */
 //             _xbt_dynar_foreach(sockets,cursor,sock_iter) {
-               for (cursor=0; cursor< xbt_dynar_length(sockets); cursor++)  {
+               for (cursor=0; cursor< (int)xbt_dynar_length(sockets); cursor++)  {
                        _xbt_dynar_cursor_get(sockets,&cursor,&sock_iter);
                        if (sock == sock_iter) {
                                DEBUG2("remove sock cursor %d dize %lu\n",cursor,xbt_dynar_length(sockets));
@@ -558,7 +558,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");