Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Multiply memset size by size of element in umpire.
[simgrid.git] / teshsuite / smpi / isp / umpire / lost-request-waitall.c
index 4a6051b..58976d3 100644 (file)
@@ -14,7 +14,7 @@ static char *rcsid =
 
 #define buf_size 128
 
-int mydelay ()                 /* about 6 seconds */
+static int mydelay(void) /* about 6 seconds */
 {
   int i;
   int val;
@@ -37,8 +37,8 @@ main (int argc, char **argv)
   int namelen = 128;
   int buf0[buf_size];
   int buf1[buf_size];
-  MPI_Request req, req0, req1;
-  MPI_Status status, status0, status1;
+  MPI_Request req;
+  MPI_Status status;
   MPI_Request areq[10];
   MPI_Status astatus[10];
 
@@ -50,8 +50,8 @@ main (int argc, char **argv)
   printf ("(%d) is alive on %s\n", rank, processor_name);
   fflush (stdout);
 
-  memset (buf0, 0, buf_size);
-  memset (buf1, 1, buf_size);
+  memset (buf0, 0, buf_size*sizeof(int));
+  memset (buf1, 1, buf_size*sizeof(int));
 
   /* 0 sends 1 two messages, but the request gets overwritten */
   switch (rank)