summaryrefslogtreecommitdiff
path: root/sys/ddb
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-09-29 05:57:15 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-09-29 05:57:15 +0000
commit721be283dc50d6de97fa8600a7b4b61554675037 (patch)
treee319f03233579b84be6fb56c3317c748545ee2e2 /sys/ddb
parent3954fb88e1230e6e8dbf8fbdea69e61bc428233e (diff)
char end[] vs long end, bad; pr 4288
Diffstat (limited to 'sys/ddb')
-rw-r--r--sys/ddb/db_sym.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/ddb/db_sym.c b/sys/ddb/db_sym.c
index 5e7e5179704..c402704c5ae 100644
--- a/sys/ddb/db_sym.c
+++ b/sys/ddb/db_sym.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_sym.c,v 1.30 2005/04/19 15:24:22 miod Exp $ */
+/* $OpenBSD: db_sym.c,v 1.31 2005/09/29 05:57:14 deraadt Exp $ */
/* $NetBSD: db_sym.c,v 1.24 2000/08/11 22:50:47 tv Exp $ */
/*
@@ -56,6 +56,8 @@ db_symtab_t *db_last_symtab;
static db_forall_func_t db_sift;
+extern char end[];
+
/*
* Put the most picky symbol table formats at the top!
*/
@@ -129,8 +131,6 @@ ddb_init()
extern char *esym;
#if defined(__sparc64__) || defined(__mips__)
extern char *ssym;
-#else
- extern long end;
#endif
char *xssym, *xesym;
@@ -534,7 +534,6 @@ db_symbol_values(sym, namep, valuep)
* The variable db_lastsym is used instead of "end" in case we
* add support for symbols in loadable driver modules.
*/
-extern char end[];
unsigned long db_lastsym = (unsigned long)end;
unsigned int db_maxoff = 0x10000000;