From 499f154bf12fe15c6aa1740100e4545a71490be1 Mon Sep 17 00:00:00 2001 From: Luca Dariz Date: Tue, 28 Jun 2022 12:10:51 +0200 Subject: fix warnings for 32 bit builds Signed-off-by: Luca Dariz Message-Id: <20220628101054.446126-13-luca@orpolo.org> --- i386/i386/debug_i386.c | 1 + i386/i386at/com.c | 2 +- i386/i386at/mem.c | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) (limited to 'i386') diff --git a/i386/i386/debug_i386.c b/i386/i386/debug_i386.c index 233caa72..4b8804cd 100644 --- a/i386/i386/debug_i386.c +++ b/i386/i386/debug_i386.c @@ -26,6 +26,7 @@ #include "thread.h" #include "trap.h" #include "debug.h" +#include "spl.h" void dump_ss(const struct i386_saved_state *st) { diff --git a/i386/i386at/com.c b/i386/i386at/com.c index 1f305b23..d5842d8f 100644 --- a/i386/i386at/com.c +++ b/i386/i386at/com.c @@ -191,7 +191,7 @@ comcnprobe(struct consdev *cp) if (strncmp(kernel_cmdline, CONSOLE_PARAMETER + 1, strlen(CONSOLE_PARAMETER) - 1) == 0) - mach_atoi(kernel_cmdline + strlen(CONSOLE_PARAMETER) - 1, + mach_atoi((u_char*)kernel_cmdline + strlen(CONSOLE_PARAMETER) - 1, &rcline); maj = 0; diff --git a/i386/i386at/mem.c b/i386/i386at/mem.c index 07acc169..ac0fd301 100644 --- a/i386/i386at/mem.c +++ b/i386/i386at/mem.c @@ -26,6 +26,7 @@ #include #include +#include /* This provides access to any memory that is not main RAM */ -- cgit v1.2.3