From 1c144fb765203d30fda3fdcac3d975fa492e3d1e Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Sun, 19 Oct 2025 21:51:28 -0500 Subject: bootstrap: stage1: remove extraneous definition Remove an extraneous definition of the NULL macro and include stddef.h into this file. Signed-off-by: Danny Holman --- .gitignore | 4 ++++ bootstrap/stage1/firmware/efi/tty.c | 5 +---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 4085e24..1b4dadf 100644 --- a/.gitignore +++ b/.gitignore @@ -25,6 +25,10 @@ *.xz *.zst +# Testing and debugging files +esp/ +.gdbinit + # Built exec's bin/cat/cat bin/chmod/chmod diff --git a/bootstrap/stage1/firmware/efi/tty.c b/bootstrap/stage1/firmware/efi/tty.c index 9131d95..fdbf38a 100644 --- a/bootstrap/stage1/firmware/efi/tty.c +++ b/bootstrap/stage1/firmware/efi/tty.c @@ -18,10 +18,7 @@ */ #include - -#ifndef NULL -#define NULL (void*)(0) -#endif +#include extern uint64_t errno; extern efi_loaded_image_protocol_t *lip; -- cgit v1.2.3