diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-09-15 19:31:32 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-09-15 19:31:32 +0000 |
commit | 2fb572f231b975f0a7c26e66c718f4c9ed2c2aa7 (patch) | |
tree | 0f28799465d475ff821fbbca8dd5616c67475094 /lib | |
parent | 3d0c3a81e5316a892e584ab674ac0aa7b45a24eb (diff) |
Kill (almost all) warnings.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libkvm/kvm.c | 6 | ||||
-rw-r--r-- | lib/libkvm/kvm_alpha.c | 3 | ||||
-rw-r--r-- | lib/libkvm/kvm_arm.c | 3 | ||||
-rw-r--r-- | lib/libkvm/kvm_file.c | 10 | ||||
-rw-r--r-- | lib/libkvm/kvm_hppa.c | 3 | ||||
-rw-r--r-- | lib/libkvm/kvm_m68k.c | 7 | ||||
-rw-r--r-- | lib/libkvm/kvm_m88k.c | 3 | ||||
-rw-r--r-- | lib/libkvm/kvm_mips64.c | 5 | ||||
-rw-r--r-- | lib/libkvm/kvm_powerpc.c | 1 | ||||
-rw-r--r-- | lib/libkvm/kvm_vax.c | 3 |
10 files changed, 27 insertions, 17 deletions
diff --git a/lib/libkvm/kvm.c b/lib/libkvm/kvm.c index 77ffa1880b4..8cec7db34b2 100644 --- a/lib/libkvm/kvm.c +++ b/lib/libkvm/kvm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm.c,v 1.41 2004/09/14 22:39:56 deraadt Exp $ */ +/* $OpenBSD: kvm.c,v 1.42 2004/09/15 19:31:31 miod Exp $ */ /* $NetBSD: kvm.c,v 1.43 1996/05/05 04:31:59 gwr Exp $ */ /*- @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)kvm.c 8.2 (Berkeley) 2/13/94"; #else -static char *rcsid = "$OpenBSD: kvm.c,v 1.41 2004/09/14 22:39:56 deraadt Exp $"; +static char *rcsid = "$OpenBSD: kvm.c,v 1.42 2004/09/15 19:31:31 miod Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -69,6 +69,8 @@ static char *rcsid = "$OpenBSD: kvm.c,v 1.41 2004/09/14 22:39:56 deraadt Exp $"; #include "kvm_private.h" +extern int __fdnlist(int, struct nlist *); + static int kvm_dbopen(kvm_t *, const char *); static int _kvm_get_header(kvm_t *); static kvm_t *_kvm_open(kvm_t *, const char *, const char *, const char *, diff --git a/lib/libkvm/kvm_alpha.c b/lib/libkvm/kvm_alpha.c index f1b4e43239b..fd16f554487 100644 --- a/lib/libkvm/kvm_alpha.c +++ b/lib/libkvm/kvm_alpha.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_alpha.c,v 1.12 2004/07/01 02:04:10 mickey Exp $ */ +/* $OpenBSD: kvm_alpha.c,v 1.13 2004/09/15 19:31:31 miod Exp $ */ /* $NetBSD: kvm_alpha.c,v 1.5 1996/10/01 21:12:05 cgd Exp $ */ /* @@ -37,6 +37,7 @@ #include <sys/kcore.h> #include <machine/kcore.h> #include <unistd.h> +#include <stdlib.h> #include <nlist.h> #include <kvm.h> diff --git a/lib/libkvm/kvm_arm.c b/lib/libkvm/kvm_arm.c index 1dcb10ee1c8..c896e0dd157 100644 --- a/lib/libkvm/kvm_arm.c +++ b/lib/libkvm/kvm_arm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_arm.c,v 1.2 2004/06/15 03:52:59 deraadt Exp $ */ +/* $OpenBSD: kvm_arm.c,v 1.3 2004/09/15 19:31:31 miod Exp $ */ /*- * Copyright (C) 1996 Wolfgang Solfrank. @@ -37,6 +37,7 @@ #include <sys/param.h> +#include <stdlib.h> #include <db.h> #include <limits.h> #include <kvm.h> diff --git a/lib/libkvm/kvm_file.c b/lib/libkvm/kvm_file.c index 913194d5533..023b28039cd 100644 --- a/lib/libkvm/kvm_file.c +++ b/lib/libkvm/kvm_file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_file.c,v 1.11 2004/06/15 03:52:59 deraadt Exp $ */ +/* $OpenBSD: kvm_file.c,v 1.12 2004/09/15 19:31:31 miod Exp $ */ /* $NetBSD: kvm_file.c,v 1.5 1996/03/18 22:33:18 thorpej Exp $ */ /*- @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)kvm_file.c 8.1 (Berkeley) 6/4/93"; #else -static char *rcsid = "$OpenBSD: kvm_file.c,v 1.11 2004/06/15 03:52:59 deraadt Exp $"; +static char *rcsid = "$OpenBSD: kvm_file.c,v 1.12 2004/09/15 19:31:31 miod Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -78,9 +78,9 @@ static int kvm_deadfiles(kvm_t *kd, int op, int arg, long filehead_o, static int kvm_deadfiles(kvm_t *kd, int op, int arg, long filehead_o, int nfiles) { - int buflen = kd->arglen, needed = buflen, error, n = 0; - char *where = kd->argspc, *start = where; - struct file *fp, file; + int buflen = kd->arglen, n = 0; + char *where = kd->argspc; + struct file *fp; struct filelist filehead; /* diff --git a/lib/libkvm/kvm_hppa.c b/lib/libkvm/kvm_hppa.c index a4a45d9869b..897f6138eb4 100644 --- a/lib/libkvm/kvm_hppa.c +++ b/lib/libkvm/kvm_hppa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_hppa.c,v 1.3 2004/06/15 03:52:59 deraadt Exp $ */ +/* $OpenBSD: kvm_hppa.c,v 1.4 2004/09/15 19:31:31 miod Exp $ */ /* * Copyright (c) 2002, Miodrag Vallat. @@ -28,6 +28,7 @@ #include <sys/param.h> #include <unistd.h> +#include <stdlib.h> #include <kvm.h> #include <db.h> diff --git a/lib/libkvm/kvm_m68k.c b/lib/libkvm/kvm_m68k.c index 30a687fb59a..4f9ab56c382 100644 --- a/lib/libkvm/kvm_m68k.c +++ b/lib/libkvm/kvm_m68k.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_m68k.c,v 1.14 2004/07/03 19:57:37 miod Exp $ */ +/* $OpenBSD: kvm_m68k.c,v 1.15 2004/09/15 19:31:31 miod Exp $ */ /* $NetBSD: kvm_m68k.c,v 1.9 1996/05/07 06:09:11 leo Exp $ */ /*- @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)kvm_hp300.c 8.1 (Berkeley) 6/4/93"; #else -static char *rcsid = "$OpenBSD: kvm_m68k.c,v 1.14 2004/07/03 19:57:37 miod Exp $"; +static char *rcsid = "$OpenBSD: kvm_m68k.c,v 1.15 2004/09/15 19:31:31 miod Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -57,6 +57,7 @@ static char *rcsid = "$OpenBSD: kvm_m68k.c,v 1.14 2004/07/03 19:57:37 miod Exp $ #include <sys/kcore.h> #include <unistd.h> +#include <stdlib.h> #include <limits.h> #include <nlist.h> #include <kvm.h> @@ -196,7 +197,7 @@ _kvm_kvatop(kvm_t *kd, u_long va, u_long *pa) cpu_kcore_hdr_t *cpu_kh; cpu_kh = kd->cpu_data; - return (_kvm_vatop(kd, (u_long)cpu_kh->sysseg_pa, va, pa)); + return (_kvm_vatop(kd, cpu_kh->sysseg_pa, va, pa)); } /* diff --git a/lib/libkvm/kvm_m88k.c b/lib/libkvm/kvm_m88k.c index 2f53544859e..a2e715c2eca 100644 --- a/lib/libkvm/kvm_m88k.c +++ b/lib/libkvm/kvm_m88k.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_m88k.c,v 1.2 2004/06/15 03:52:59 deraadt Exp $ */ +/* $OpenBSD: kvm_m88k.c,v 1.3 2004/09/15 19:31:31 miod Exp $ */ /* $NetBSD: kvm_alpha.c,v 1.2 1995/09/29 03:57:48 cgd Exp $ */ /* @@ -33,6 +33,7 @@ #include <sys/proc.h> #include <sys/stat.h> #include <unistd.h> +#include <stdlib.h> #include <nlist.h> #include <kvm.h> diff --git a/lib/libkvm/kvm_mips64.c b/lib/libkvm/kvm_mips64.c index 92903827935..ee440679370 100644 --- a/lib/libkvm/kvm_mips64.c +++ b/lib/libkvm/kvm_mips64.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_mips64.c,v 1.1 2004/08/06 22:53:47 deraadt Exp $ */ +/* $OpenBSD: kvm_mips64.c,v 1.2 2004/09/15 19:31:31 miod Exp $ */ /* $NetBSD: kvm_mips.c,v 1.3 1996/03/18 22:33:44 thorpej Exp $ */ /*- @@ -42,7 +42,7 @@ #if 0 static char sccsid[] = "@(#)kvm_mips.c 8.1 (Berkeley) 6/4/93"; #else -static char *rcsid = "$OpenBSD: kvm_mips64.c,v 1.1 2004/08/06 22:53:47 deraadt Exp $"; +static char *rcsid = "$OpenBSD: kvm_mips64.c,v 1.2 2004/09/15 19:31:31 miod Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -56,6 +56,7 @@ static char *rcsid = "$OpenBSD: kvm_mips64.c,v 1.1 2004/08/06 22:53:47 deraadt E #include <sys/proc.h> #include <sys/stat.h> #include <unistd.h> +#include <stdlib.h> #include <nlist.h> #include <kvm.h> diff --git a/lib/libkvm/kvm_powerpc.c b/lib/libkvm/kvm_powerpc.c index 7927fe9a5c8..d22b253fa2f 100644 --- a/lib/libkvm/kvm_powerpc.c +++ b/lib/libkvm/kvm_powerpc.c @@ -37,6 +37,7 @@ #include <sys/param.h> +#include <stdlib.h> #include <db.h> #include <limits.h> #include <kvm.h> diff --git a/lib/libkvm/kvm_vax.c b/lib/libkvm/kvm_vax.c index 4746b7e6732..3dcf8dc18a8 100644 --- a/lib/libkvm/kvm_vax.c +++ b/lib/libkvm/kvm_vax.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_vax.c,v 1.10 2004/07/01 02:04:10 mickey Exp $ */ +/* $OpenBSD: kvm_vax.c,v 1.11 2004/09/15 19:31:31 miod Exp $ */ /* $NetBSD: kvm_vax.c,v 1.3 1996/03/18 22:34:06 thorpej Exp $ */ /*- @@ -46,6 +46,7 @@ #include <sys/proc.h> #include <sys/stat.h> #include <unistd.h> +#include <stdlib.h> #include <nlist.h> #include <kvm.h> |