From d187c576d8682e0556c6b2c961cd42fe0d98f228 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Tue, 4 Oct 2022 21:00:39 +0200 Subject: [PATCH] term: Make term_notready() static --- common/lib/gterm.c | 1 + common/lib/term.c | 3 +-- common/lib/term.h | 3 --- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/common/lib/gterm.c b/common/lib/gterm.c index 3d19cfe6..bceac153 100644 --- a/common/lib/gterm.c +++ b/common/lib/gterm.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include diff --git a/common/lib/term.c b/common/lib/term.c index 912165e6..20640363 100644 --- a/common/lib/term.c +++ b/common/lib/term.c @@ -4,7 +4,6 @@ #include #include #include -#include #include #include #include @@ -59,7 +58,7 @@ static void notready_deinit(struct term_context *ctx, void (*_free)(void *, size (void)_free; } -void term_notready(void) { +static void term_notready(void) { if (term != NULL) { term->deinit(term, pmm_free); term = NULL; diff --git a/common/lib/term.h b/common/lib/term.h index 4ba66268..e3132bc5 100644 --- a/common/lib/term.h +++ b/common/lib/term.h @@ -3,8 +3,6 @@ #include #include -#include -#include #include #include @@ -37,7 +35,6 @@ inline void set_cursor_pos_helper(size_t x, size_t y) { } void term_fallback(void); - void _term_write(uint64_t buf, uint64_t count); #endif