From b97967ab660243b723f246db03c2e4a82e125f3f Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 7 Jul 2024 07:02:46 +0300 Subject: simplify assertions + No real point having multiple different levels of assertions, just say you assert something and be done with it --- src/elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/elf.c') 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 -- cgit v1.3