summaryrefslogtreecommitdiff
path: root/mmm.c
diff options
context:
space:
mode:
Diffstat (limited to 'mmm.c')
-rw-r--r--mmm.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/mmm.c b/mmm.c
index 4dc9a04..0df8330 100644
--- a/mmm.c
+++ b/mmm.c
@@ -5,22 +5,20 @@
#ifdef MMM_RECORD
-
-void* mmm_malloc(size_t size, const char *fname, int line )
+void* mmm_malloc(size_t size, const char *fname, int line)
{
- void *ret=NULL;
- ret = malloc( size );
- printf("alloc,0x%8p,%zu,%s,%d\n",(void *)ret,size,fname,line);
+ void *ret = NULL;
+ ret = malloc(size);
+ printf("alloc,0x%8p,%zu,%s,%d\n", (void *) ret, size, fname, line);
+
return ret;
}
-void mmm_free( void *ptr, const char *fname, int line )
+void mmm_free(void *ptr, const char *fname, int line)
{
- printf("free,0x%8p,%s,%d\n",(void *)ptr,fname,line);
- free( ptr );
+ printf("free,0x%8p,%s,%d\n", (void *) ptr, fname, line);
+ free(ptr);
}
#endif
-
-