From: Martin Quinson Date: Wed, 1 Feb 2012 15:09:27 +0000 (+0100) Subject: errno were never updated anyway X-Git-Tag: exp_20120216~102 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/c9bee92e0541ed3ccbd101e900b912720b9996b0?hp=669455c3bd567e8e5543934aa2960d48321581de;ds=sidebyside errno were never updated anyway --- diff --git a/src/xbt/mmalloc/mm_legacy.c b/src/xbt/mmalloc/mm_legacy.c index 105dc0a7f6..74bc4286e1 100644 --- a/src/xbt/mmalloc/mm_legacy.c +++ b/src/xbt/mmalloc/mm_legacy.c @@ -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++; diff --git a/src/xbt/mmalloc/mmprivate.h b/src/xbt/mmalloc/mmprivate.h index 37673659aa..c122547ce6 100644 --- a/src/xbt/mmalloc/mmprivate.h +++ b/src/xbt/mmalloc/mmprivate.h @@ -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;