term: Make term_notready() static
This commit is contained in:
parent
ff8c5f318c
commit
d187c576d8
@ -7,6 +7,7 @@
|
||||
#include <lib/print.h>
|
||||
#include <lib/uri.h>
|
||||
#include <lib/fb.h>
|
||||
#include <lib/image.h>
|
||||
#include <mm/pmm.h>
|
||||
#include <term/term.h>
|
||||
#include <term/backends/framebuffer.h>
|
||||
|
@ -4,7 +4,6 @@
|
||||
#include <lib/term.h>
|
||||
#include <lib/real.h>
|
||||
#include <lib/misc.h>
|
||||
#include <lib/print.h>
|
||||
#include <mm/pmm.h>
|
||||
#include <drivers/vga_textmode.h>
|
||||
#include <term/backends/framebuffer.h>
|
||||
@ -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;
|
||||
|
@ -3,8 +3,6 @@
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <lib/image.h>
|
||||
#include <lib/print.h>
|
||||
#include <term/term.h>
|
||||
|
||||
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user