aboutsummaryrefslogtreecommitdiff
path: root/kernel/inc/serial.h
diff options
context:
space:
mode:
authorMarvin Borner2021-04-01 19:39:14 +0200
committerMarvin Borner2021-04-01 19:39:14 +0200
commitafa00abb2b68205bee539d7947130d6b1b1ec6e9 (patch)
tree3a821a75af6c4d4ff1bd4128c4859d77abf87e66 /kernel/inc/serial.h
parent4c168fb34c15a1b8981abef7ccef1542a6fb05ca (diff)
Hardened entire system
By using the nonnull attribute and replace buffer-overflow-prone functions like strcpy, strcat and sprintf by strlcpy, strlcat and snprintf.
Diffstat (limited to 'kernel/inc/serial.h')
-rw-r--r--kernel/inc/serial.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/inc/serial.h b/kernel/inc/serial.h
index 7ca5ac2..e96316a 100644
--- a/kernel/inc/serial.h
+++ b/kernel/inc/serial.h
@@ -3,8 +3,10 @@
#ifndef SERIAL_H
#define SERIAL_H
+#include <def.h>
+
void serial_install(void);
-void serial_print(const char *data);
+void serial_print(const char *data) NONNULL;
void serial_put(char ch);
#endif