1 2 3 4 5 6 7 8 9 10 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; }