aboutsummaryrefslogtreecommitdiff
path: root/libc/inc/assert.h
diff options
context:
space:
mode:
authorMarvin Borner2020-11-05 17:30:39 +0100
committerMarvin Borner2020-11-05 17:32:53 +0100
commit63e86f792167e6cc2e9600d00b184a3c83fe7498 (patch)
tree31e2d583be3ebf34782f6ec37f6c524657c40686 /libc/inc/assert.h
parent916fca2161e76de67a5106b90baf00a57f2a0512 (diff)
Added warning flags and fixed them :)
Diffstat (limited to 'libc/inc/assert.h')
-rw-r--r--libc/inc/assert.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/inc/assert.h b/libc/inc/assert.h
index f4fa4b4..3e45f44 100644
--- a/libc/inc/assert.h
+++ b/libc/inc/assert.h
@@ -10,9 +10,9 @@
#define assert(exp) \
if (!(exp)) { \
printf("%s:%d: %s: Assertion '%s' failed\n", __FILE__, __LINE__, __func__, #exp); \
- struct proc *proc = proc_current(); \
- if (proc) \
- proc_exit(proc, 1); \
+ struct proc *assert_proc = proc_current(); \
+ if (assert_proc) \
+ proc_exit(assert_proc, 1); \
else \
__asm__ volatile("cli\nhlt"); \
}