From e3ad43e464b6d5112aefb8c3a8a292023cf18731 Mon Sep 17 00:00:00 2001 From: Marin Ramesa Date: Wed, 20 Nov 2013 13:53:58 +0100 Subject: Fix implicit declaration of function * ddb/db_sym.c (aout_db_sym_init): Remove forward declaration. * ddb/db_sym.h (aout_db_sym_init): Add prototype. * i386/i386at/model_dep.c (aout_db_sym_init): Fix call. [MACH_KDB]: Include ddb/db_sym.h. [MACH_KDB]: Add comment after else and endif. --- i386/i386at/model_dep.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'i386') diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c index 2bc1996..1a3aee8 100644 --- a/i386/i386at/model_dep.c +++ b/i386/i386at/model_dep.c @@ -77,11 +77,12 @@ /* Location of the kernel's symbol table. Both of these are 0 if none is available. */ #if MACH_KDB +#include static vm_offset_t kern_sym_start, kern_sym_end; -#else +#else /* MACH_KDB */ #define kern_sym_start 0 #define kern_sym_end 0 -#endif +#endif /* MACH_KDB */ /* These indicate the total extent of physical memory addresses we're using. They are page-aligned. */ @@ -581,7 +582,7 @@ void c_boot_entry(vm_offset_t bi) */ if (kern_sym_start) { - aout_db_sym_init(kern_sym_start, kern_sym_end, "mach", 0); + aout_db_sym_init((char *)kern_sym_start, (char *)kern_sym_end, "mach", (char *)0); } #endif /* MACH_KDB */ -- cgit v1.2.3