diff --git a/hw3/include/sfmm.h b/hw3/include/sfmm.h index b68c4ec..98472e4 100644 --- a/hw3/include/sfmm.h +++ b/hw3/include/sfmm.h @@ -315,12 +315,12 @@ void *sf_mem_grow(); */ sf_header sf_magic(); -//#define MAGIC (sf_magic()) -#ifndef WEAK_MAGIC -#define MAGIC (sf_magic()) -#else -#define MAGIC ((sf_header)0x0) -#endif +#define MAGIC (sf_magic()) +// #ifndef WEAK_MAGIC +// #define MAGIC (sf_magic()) +// #else +// #define MAGIC ((sf_header)0x0) +// #endif /* * Set the "magic number" used to obfuscate header and footer contents. * Setting the magic number to zero essentially turns off obfuscation, which will diff --git a/hw3/src/main.c b/hw3/src/main.c index fc1d91f..5e2c574 100644 --- a/hw3/src/main.c +++ b/hw3/src/main.c @@ -3,13 +3,5 @@ int main(int argc, char const *argv[]) { - size_t sz_x = sizeof(int) * 20, sz_y = sizeof(int) * 16; - void *x = sf_malloc(sz_x); - sf_realloc(x, sz_y); - - - - sf_show_heap(); - return EXIT_SUCCESS; }