about summary refs log tree commit diff
path: root/malloc/mcheck.h
diff options
context:
space:
mode:
authorOndřej Bílka <neleai@seznam.cz>2014-01-02 09:38:18 +0100
committerOndřej Bílka <neleai@seznam.cz>2014-01-02 09:40:10 +0100
commit6c8dbf00f536d78b1937b5af6f57be47fd376344 (patch)
treead86d3e7433a907cac50ebbd9c39ca3402a87c6a /malloc/mcheck.h
parent9a3c6a6ff602c88d7155139a7d7d0000b7b7e946 (diff)
downloadglibc-6c8dbf00f536d78b1937b5af6f57be47fd376344.tar.gz
glibc-6c8dbf00f536d78b1937b5af6f57be47fd376344.tar.xz
glibc-6c8dbf00f536d78b1937b5af6f57be47fd376344.zip
Reformat malloc to gnu style.
Diffstat (limited to 'malloc/mcheck.h')
-rw-r--r--malloc/mcheck.h21
1 files changed, 10 insertions, 11 deletions
diff --git a/malloc/mcheck.h b/malloc/mcheck.h
index 583ae245d9..7fee5b2855 100644
--- a/malloc/mcheck.h
+++ b/malloc/mcheck.h
@@ -16,7 +16,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #ifndef _MCHECK_H
-#define _MCHECK_H	1
+#define _MCHECK_H       1
 
 #include <features.h>
 
@@ -25,24 +25,24 @@ __BEGIN_DECLS
 /* Return values for `mprobe': these are the kinds of inconsistencies that
    `mcheck' enables detection of.  */
 enum mcheck_status
-  {
-    MCHECK_DISABLED = -1,       /* Consistency checking is not turned on.  */
-    MCHECK_OK,                  /* Block is fine.  */
-    MCHECK_FREE,                /* Block freed twice.  */
-    MCHECK_HEAD,                /* Memory before the block was clobbered.  */
-    MCHECK_TAIL                 /* Memory after the block was clobbered.  */
-  };
+{
+  MCHECK_DISABLED = -1,         /* Consistency checking is not turned on.  */
+  MCHECK_OK,                    /* Block is fine.  */
+  MCHECK_FREE,                  /* Block freed twice.  */
+  MCHECK_HEAD,                  /* Memory before the block was clobbered.  */
+  MCHECK_TAIL                   /* Memory after the block was clobbered.  */
+};
 
 
 /* Activate a standard collection of debugging hooks.  This must be called
    before `malloc' is ever called.  ABORTFUNC is called with an error code
    (see enum above) when an inconsistency is detected.  If ABORTFUNC is
    null, the standard function prints on stderr and then calls `abort'.  */
-extern int mcheck (void (*__abortfunc) (enum mcheck_status)) __THROW;
+extern int mcheck (void (*__abortfunc)(enum mcheck_status)) __THROW;
 
 /* Similar to `mcheck' but performs checks for all block whenever one of
    the memory handling functions is called.  This can be very slow.  */
-extern int mcheck_pedantic (void (*__abortfunc) (enum mcheck_status)) __THROW;
+extern int mcheck_pedantic (void (*__abortfunc)(enum mcheck_status)) __THROW;
 
 /* Force check of all blocks now.  */
 extern void mcheck_check_all (void);
@@ -57,5 +57,4 @@ extern void mtrace (void) __THROW;
 extern void muntrace (void) __THROW;
 
 __END_DECLS
-
 #endif /* mcheck.h */