summaryrefslogtreecommitdiff
path: root/kern/task.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/task.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/task.c')
-rw-r--r--kern/task.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kern/task.c b/kern/task.c
index e5b34d16..e415cb65 100644
--- a/kern/task.c
+++ b/kern/task.c
@@ -15,14 +15,15 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <stddef.h>
+#include <string.h>
+
#include <kern/error.h>
#include <kern/init.h>
#include <kern/kmem.h>
#include <kern/list.h>
#include <kern/param.h>
#include <kern/spinlock.h>
-#include <kern/stddef.h>
-#include <kern/string.h>
#include <kern/task.h>
#include <kern/thread.h>
#include <vm/vm_kmem.h>