Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Please sonar: use s_xbt_mheap_t.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 3 Apr 2018 12:26:56 +0000 (14:26 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 3 Apr 2018 13:01:33 +0000 (15:01 +0200)
src/include/xbt/mmalloc.h

index ab6ca00..54cbd19 100644 (file)
@@ -27,7 +27,7 @@ SG_BEGIN_DECL()
  * The heap structure itself is an opaque object that shouldnt be messed with.
  */
 typedef struct mdesc s_xbt_mheap_t;
  * The heap structure itself is an opaque object that shouldnt be messed with.
  */
 typedef struct mdesc s_xbt_mheap_t;
-typedef struct mdesc* xbt_mheap_t;
+typedef s_xbt_mheap_t* xbt_mheap_t;
 
 /* Allocate SIZE bytes of memory (and memset it to 0).  */
 XBT_PUBLIC void* mmalloc(xbt_mheap_t md, size_t size);
 
 /* Allocate SIZE bytes of memory (and memset it to 0).  */
 XBT_PUBLIC void* mmalloc(xbt_mheap_t md, size_t size);