diff options
author | Anton Kling <anton@kling.gg> | 2023-11-28 20:11:05 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-11-28 20:12:20 +0100 |
commit | d07fa25e04a19ccb9aa25bb6e2156d23d213db77 (patch) | |
tree | 25f2e4a6301f3ad7c5b158e74966a394862fdf39 /kernel/hashmap | |
parent | 636858dbbd48ed9f5073793b46740302aa202f43 (diff) |
Meta: Apply new clang-format rules to kernel
Diffstat (limited to 'kernel/hashmap')
-rw-r--r-- | kernel/hashmap/hashmap.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/hashmap/hashmap.c b/kernel/hashmap/hashmap.c index 72524e7..8779f0b 100644 --- a/kernel/hashmap/hashmap.c +++ b/kernel/hashmap/hashmap.c @@ -28,10 +28,10 @@ */ #include "hashmap.h" +#include <kmalloc.h> #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <kmalloc.h> #define CONSTANT 0x031b5515 @@ -67,7 +67,9 @@ char *copy_c_string(const char *str) { return ret_string; } -u32 limit_hash(HashMap *m, u32 hash) { return hash % m->size; } +u32 limit_hash(HashMap *m, u32 hash) { + return hash % m->size; +} void free_linkedlist_entry(LinkedList *entry) { if (entry->key_allocated) { |