summaryrefslogtreecommitdiff
path: root/src/kernel/arch
diff options
context:
space:
mode:
authordzwdz2021-08-09 22:26:29 +0200
committerdzwdz2021-08-09 22:26:29 +0200
commit57586147f6327d4ca1d630d7b336cce20656bc39 (patch)
treec1d42db0261ddc3b1fe00b37e4f925bb3816b952 /src/kernel/arch
parent4165209842edf74bd786f6525a58b7b0bb9790d5 (diff)
vga tty: vga_putchar is now static
Diffstat (limited to 'src/kernel/arch')
-rw-r--r--src/kernel/arch/i386/tty/vga.c2
-rw-r--r--src/kernel/arch/i386/tty/vga.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/kernel/arch/i386/tty/vga.c b/src/kernel/arch/i386/tty/vga.c
index 0acf1cb..3cd1034 100644
--- a/src/kernel/arch/i386/tty/vga.c
+++ b/src/kernel/arch/i386/tty/vga.c
@@ -15,7 +15,7 @@ static void vga_scroll() {
vga_pos -= 80;
}
-void vga_putchar(char c) {
+static void vga_putchar(char c) {
if (vga_pos >= vga_len - 80)
vga_scroll();
vga[vga_pos++].c = c;
diff --git a/src/kernel/arch/i386/tty/vga.h b/src/kernel/arch/i386/tty/vga.h
index f2e3ff9..c8747c7 100644
--- a/src/kernel/arch/i386/tty/vga.h
+++ b/src/kernel/arch/i386/tty/vga.h
@@ -1,6 +1,5 @@
#pragma once
#include <stddef.h>
-void vga_putchar(char c);
void vga_write(const char *buf, size_t len);
void vga_clear();