summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Holman <dholman@gymli.org>2025-10-19 21:51:28 -0500
committerDanny Holman <dholman@gymli.org>2025-10-19 22:02:15 -0500
commit1c144fb765203d30fda3fdcac3d975fa492e3d1e (patch)
treee69599c22490733f8edb4a4864cae9d868fc205d
parentbootstrap: stage1: use the new headers (diff)
downloadbox-1c144fb765203d30fda3fdcac3d975fa492e3d1e.tar.gz
box-1c144fb765203d30fda3fdcac3d975fa492e3d1e.tar.zst
box-1c144fb765203d30fda3fdcac3d975fa492e3d1e.zip
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 <dholman@gymli.org>
-rw-r--r--.gitignore4
-rw-r--r--bootstrap/stage1/firmware/efi/tty.c5
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 <bootabi/efi.h>
-
-#ifndef NULL
-#define NULL (void*)(0)
-#endif
+#include <stddef.h>
extern uint64_t errno;
extern efi_loaded_image_protocol_t *lip;