diff options
author | Bruce Evans <bde@FreeBSD.org> | 1995-03-16 18:17:34 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1995-03-16 18:17:34 +0000 |
commit | b5e8ce9f12b66453759f254bdf8bfc53fe2b6948 (patch) | |
tree | e4952f18ac85eccbbd3d9b0f010098732d07fe6d /sys/amd64/amd64/db_trace.c | |
parent | 11098d3bad179feb30248af23c90e5df877d36f8 (diff) | |
download | src-b5e8ce9f12b66453759f254bdf8bfc53fe2b6948.tar.gz src-b5e8ce9f12b66453759f254bdf8bfc53fe2b6948.zip |
Add and move declarations to fix all of the warnings from `gcc -Wimplicit'
(except in netccitt, netiso and netns) and most of the warnings from
`gcc -Wnested-externs'. Fix all the bugs found. There were no serious
ones.
Notes
Notes:
svn path=/head/; revision=7090
Diffstat (limited to 'sys/amd64/amd64/db_trace.c')
-rw-r--r-- | sys/amd64/amd64/db_trace.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/amd64/amd64/db_trace.c b/sys/amd64/amd64/db_trace.c index 756114f7a13b..28c152f22b3e 100644 --- a/sys/amd64/amd64/db_trace.c +++ b/sys/amd64/amd64/db_trace.c @@ -23,13 +23,15 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: db_trace.c,v 1.8 1994/08/13 03:49:37 wollman Exp $ + * $Id: db_trace.c,v 1.9 1995/03/01 21:37:44 davidg Exp $ */ #include <sys/param.h> #include <sys/systm.h> #include <sys/proc.h> +#include <machine/md_var.h> + #include <vm/vm.h> #include <vm/vm_param.h> #include <vm/lock.h> @@ -109,7 +111,6 @@ db_numargs(fp) int *argp; int inst; int args; - extern char etext[]; argp = (int *)db_get_value((int)&fp->f_retaddr, 4, FALSE); if (argp < (int *)VM_MIN_KERNEL_ADDRESS || argp > (int *)etext) |