aboutsummaryrefslogtreecommitdiff
path: root/src/elf.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-07-07 07:02:46 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-07-07 07:02:46 +0300
commitb97967ab660243b723f246db03c2e4a82e125f3f (patch)
treed30ef3f9dbbc33453c868282b749018659fb6a6b /src/elf.c
parent122374c362ba8bb9082385da3c82e264ab594f15 (diff)
downloadkmi-b97967ab660243b723f246db03c2e4a82e125f3f.tar.gz
kmi-b97967ab660243b723f246db03c2e4a82e125f3f.zip
simplify assertions
+ No real point having multiple different levels of assertions, just say you assert something and be done with it
Diffstat (limited to 'src/elf.c')
-rw-r--r--src/elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elf.c b/src/elf.c
index 9add641..5c2f9bd 100644
--- a/src/elf.c
+++ b/src/elf.c
@@ -46,7 +46,7 @@ static uint8_t __elf_to_uvflags(uint8_t elf_flags)
static void __map_exec(struct tcb *t, vm_t bin, uint8_t ei_c, vm_t phstart,
size_t phnum, size_t phsize)
{
- hard_assert(t && is_proc(t), RETURN_VOID);
+ assert(t && is_proc(t));
/** \todo take alignment into consideration? */
/** \todo take overlapping memory regions into account, probably mostly