Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move xbt_modinter.h to src/include/xbt/.
[simgrid.git] / src / xbt / mmalloc / mm_module.c
index b1c1551..4a1f603 100644 (file)
@@ -1,6 +1,6 @@
 /* Initialization for access to a mmap'd malloc managed region. */
 
-/* Copyright (c) 2012-2019. The SimGrid Team.
+/* Copyright (c) 2012-2021. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -37,7 +37,7 @@
 #endif
 #include "mmprivate.h"
 #include "xbt/ex.h"
-#include "src/xbt_modinter.h" /* declarations of mmalloc_preinit and friends that live here */
+#include "xbt/xbt_modinter.h" /* declarations of mmalloc_preinit and friends that live here */
 
 #ifndef SEEK_SET
 #define SEEK_SET 0
@@ -96,7 +96,7 @@ xbt_mheap_t xbt_mheap_new_options(int fd, void *baseaddr, int options)
       return (NULL);
 
     else if (sbuf.st_size > 0) {
-      /* We were given an valid file descriptor on an open file, so try to remap
+      /* We were given a valid file descriptor on an open file, so try to remap
          it into the current process at the same address to which it was previously
          mapped. It naturally have to pass some sanity checks for that.
 
@@ -265,7 +265,7 @@ void *xbt_mheap_destroy(xbt_mheap_t mdp)
     }
   }
 
-  return (mdp);
+  return mdp;
 }
 
 /* Safety gap from the heap's break address.