Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
errno were never updated anyway
authorMartin Quinson <martin.quinson@loria.fr>
Wed, 1 Feb 2012 15:09:27 +0000 (16:09 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Wed, 1 Feb 2012 15:09:27 +0000 (16:09 +0100)
src/xbt/mmalloc/mm_legacy.c
src/xbt/mmalloc/mmprivate.h

index 105dc0a..74bc428 100644 (file)
@@ -352,16 +352,7 @@ int mmalloc_compare_mdesc(struct mdesc *mdp1, struct mdesc *mdp2, void *std_heap
     }
   }
 
-  if(mdp1->saved_errno != mdp2->saved_errno){
-    if(XBT_LOG_ISENABLED(xbt_mm_legacy, xbt_log_priority_debug)){
-      XBT_DEBUG("Different errno");
-      errors++;
-    }else{
-      return 1;
-    }
-  }
-
-  if(mdp1->version != mdp2->version){
+   if(mdp1->version != mdp2->version){
     if(XBT_LOG_ISENABLED(xbt_mm_legacy, xbt_log_priority_debug)){
       XBT_DEBUG("Different version of the mmalloc package");
       errors++;
index 3767365..c122547 100644 (file)
@@ -161,10 +161,6 @@ struct mdesc {
   /* Some flag bits to keep track of various internal things. */
   unsigned int flags;
 
-  /* If a system call made by the mmalloc package fails, the errno is
-     preserved for future examination. */
-  int saved_errno;
-
   /* Number of info entries.  */
   size_t heapsize;