summaryrefslogtreecommitdiff
path: root/kern/sref.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-02-04 17:45:17 +0100
committerRichard Braun <rbraun@sceen.net>2017-02-04 17:45:17 +0100
commitfd035c0a3d361e513fe7916b67e14ff702983153 (patch)
tree81d24cf88a68144bfd6113a8e148a0dd9528affe /kern/sref.c
parentd479903845975a480be4201aa892e4434c4f6c54 (diff)
Clean up compilation
Instead of mixing standard headers and internal redefinitions of standard types, completely rely on the compiler for what is guaranteed for a free standing environment. This results in the removal of kern/stddef.h and kern/stdint.h. The kern/types.h header is reintroduced for the different (and saner) purpose of defining types not specified in standard C, namely ssize_t for now.
Diffstat (limited to 'kern/sref.c')
-rw-r--r--kern/sref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/sref.c b/kern/sref.c
index dc5f446..e1368c3 100644
--- a/kern/sref.c
+++ b/kern/sref.c
@@ -42,6 +42,7 @@
*/
#include <stdbool.h>
+#include <stddef.h>
#include <kern/assert.h>
#include <kern/condition.h>
@@ -58,7 +59,6 @@
#include <kern/sprintf.h>
#include <kern/sref.h>
#include <kern/sref_i.h>
-#include <kern/stddef.h>
#include <kern/thread.h>
#include <machine/cpu.h>