Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
remove potential bug / clang warning
authorAugustin Degomme <augustin.degomme@imag.fr>
Tue, 25 Nov 2014 12:16:19 +0000 (13:16 +0100)
committerAugustin Degomme <augustin.degomme@imag.fr>
Fri, 28 Nov 2014 09:12:10 +0000 (10:12 +0100)
size_t being undefined, the comparison < 0 was never true

src/mc/mc_checkpoint.c

index b21f190..d205926 100644 (file)
@@ -607,7 +607,7 @@ static void MC_get_current_fd(mc_snapshot_t snapshot){
 
     const size_t link_size = 200;
     char link[200];
-    size_t res = readlink(source, link, link_size);
+    int res = readlink(source, link, link_size);
     if (res<0) {
       xbt_die("Could not read link for %s", source);
     }