diff --git a/kernel/memory.c b/kernel/memory.c index 389f5e1..137d8a7 100644 --- a/kernel/memory.c +++ b/kernel/memory.c @@ -1,5 +1,5 @@ -#ifndef LINKED_LIST_C -#define LINKED_LIST_C +#ifndef MEMORY_C +#define MEMORY_C #include @@ -26,7 +26,7 @@ typedef struct page_tag { page_tag *start = (void *) MEMORY_START;; size_t calculate_realsize(size_t size) { - if (size % PAGE_ALIGNMENT == 0) return size + 0; + if (size % PAGE_ALIGNMENT == 0) return size; return size + PAGE_ALIGNMENT - (size % PAGE_ALIGNMENT); } @@ -205,4 +205,4 @@ int command_mem_dump(char *string) { // test_allocs(); //} -#endif // LINKED_LIST_C +#endif // MEMORY_C diff --git a/kernel/tests/tests.c b/kernel/tests/tests.c index 1ccef94..f6da202 100644 --- a/kernel/tests/tests.c +++ b/kernel/tests/tests.c @@ -1,5 +1,5 @@ -#ifndef TESTS_C -#define TESTS_C +#ifndef TESTS_TESTS_C +#define TESTS_TESTS_C #define TESTS_ENABLED #ifdef TESTS_ENABLED @@ -88,4 +88,4 @@ static char *all_tests() { #endif // TESTS_ENABLED -#endif // TESTS_C \ No newline at end of file +#endif // TESTS_TESTS_C \ No newline at end of file diff --git a/kernel/util/printer.c b/kernel/util/printer.c index 4237d3e..98dea8e 100644 --- a/kernel/util/printer.c +++ b/kernel/util/printer.c @@ -1,5 +1,5 @@ -#ifndef TABS_PRINTER_C -#define TABS_PRINTER_C +#ifndef UTIL_PRINTER_C +#define UTIL_PRINTER_C #include @@ -69,4 +69,4 @@ void print(const char *fmt, ...) { va_end(argp); } -#endif //TABS_PRINTER_C \ No newline at end of file +#endif //UTIL_PRINTER_C \ No newline at end of file