diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/untyped-retype.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/untyped-retype.c b/lib/untyped-retype.c new file mode 100644 index 0000000..70fb4d2 --- /dev/null +++ b/lib/untyped-retype.c @@ -0,0 +1,11 @@ +#include <object.h> +#include <memory.h> +#include <stddef.h> +#include <error.h> + +int +ko_untyped_retype_objdir(objdir_entry_t *target) +{ + size_t *untyped = ko_entry_data(target); + if(*untyped != 0x1000) return -KE_BADSIZE; +} |