memory related functions
[vg.git] / vg_mem.h
index fbebaf8342f468c6d27ca888fa388ad71da9937c..820fa6d19aa0d701349de4a4bd7df5c02f9e4352 100644 (file)
--- a/vg_mem.h
+++ b/vg_mem.h
@@ -8,7 +8,7 @@
 #include <stdlib.h>
 #include <malloc.h>
 
-void vg_print_backtrace(void);
+VG_STATIC void vg_print_backtrace(void);
 
 #define VG_MAX_ALLOCATIONS 128
 #define VG_FUZZ_ALLOCATIONS
@@ -337,8 +337,7 @@ VG_STATIC void *vg_create_linear_allocator( void *lin_alloc, u32 size,
 
       alloc->allocation_count ++;
    }
-   else
-   {
+   else{
       if( vg_mem.use_libc_malloc && (flags & VG_MEMORY_SYSTEM) )
          header = malloc( sizeof(vg_linear_allocator) );
       else