Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
s_newEvent is changed to a class
[simgrid.git] / examples / smpi / replay_multiple / replay_multiple.c
index b1330c4670d9a4f23519e06b14d902a5406c0e9d..a2464b88be4f3965e77d186e3adfa0ee53fb0145 100644 (file)
@@ -29,12 +29,11 @@ int main(int argc, char *argv[]){
   FILE* fp = fopen(argv[1], "r");
   if (fp == NULL)
     xbt_die("Cannot open %s", argv[1]);
-  ssize_t read;
-  char   *line = NULL;
+  char *line = NULL;
   size_t n   = 0;
   int instance_size = 0;
   const char* instance_id = NULL;
-  while ((read = xbt_getline(&line, &n, fp)) != -1 ){
+  while (xbt_getline(&line, &n, fp) != -1 ){
     xbt_dynar_t elems = xbt_str_split_quoted_in_place(line);
     if(xbt_dynar_length(elems)<3){
       xbt_die ("Not enough elements in the line");