diff options
author | Richard Braun <rbraun@sceen.net> | 2017-06-25 20:44:44 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-06-25 20:50:25 +0200 |
commit | 9ded7917da06dea7f7284648281fd5d827f8a9a4 (patch) | |
tree | 75ab1d8d1b4d89ceb6d17563367c40446c865521 /kern/panic.h | |
parent | 5ee8402d3746e1e7831f6094aa07d29c5306b416 (diff) |
Use the C11 alignas and noreturn macros
Diffstat (limited to 'kern/panic.h')
-rw-r--r-- | kern/panic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/panic.h b/kern/panic.h index cd0651a4..e0980575 100644 --- a/kern/panic.h +++ b/kern/panic.h @@ -18,12 +18,12 @@ #ifndef _KERN_PANIC_H #define _KERN_PANIC_H -#include <kern/macros.h> +#include <stdnoreturn.h> /* * Print the given message and halt the system immediately. */ -void __noreturn panic(const char *format, ...) +noreturn void panic(const char *format, ...) __attribute__((format(printf, 1, 2))); #endif /* _KERN_PANIC_H */ |