diff options
author | Marvin Borner | 2019-10-13 20:11:32 +0200 |
---|---|---|
committer | Marvin Borner | 2019-10-13 20:11:32 +0200 |
commit | 8754542ce074bef0984f91ce1b1cd8aff9b3d5e9 (patch) | |
tree | 66c6df9f2a2e9e4482ddfbce10490f706f78da33 /src/kernel/io | |
parent | 58804851fc49f6db1c87f791d39779766108efb0 (diff) |
Fixed all compiler warnings
Diffstat (limited to 'src/kernel/io')
-rw-r--r-- | src/kernel/io/io.c | 2 | ||||
-rw-r--r-- | src/kernel/io/io.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/io/io.c b/src/kernel/io/io.c index dc2d59a..5da4e0e 100644 --- a/src/kernel/io/io.c +++ b/src/kernel/io/io.c @@ -52,7 +52,7 @@ void serial_put(char ch) { send_b(0x3f8, ch); } -void serial_write(char *data) { +void serial_write(const char *data) { for (size_t i = 0; i < strlen(data); i++) { serial_put(data[i]); } diff --git a/src/kernel/io/io.h b/src/kernel/io/io.h index a34bd21..a145319 100644 --- a/src/kernel/io/io.h +++ b/src/kernel/io/io.h @@ -54,7 +54,7 @@ void init_serial(); * Write a string to the serial port (QEMU logging) * @param data The string that should get transmitted */ -void serial_write(char *data); +void serial_write(const char *data); /** * Write a hex number to the serial port (QEMU logging) |