aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/ddb
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2018-06-17 00:00:24 +0000
committerEitan Adler <eadler@FreeBSD.org>2018-06-17 00:00:24 +0000
commit5d9573acf22a9edd86ad236325dc62d534e52eb1 (patch)
treee3dbc710b81028869943c648136b608439c9ca81 /sbin/ddb
parent62a073130459875592b6efcd851bc1c53b002acf (diff)
downloadsrc-5d9573acf22a9edd86ad236325dc62d534e52eb1.tar.gz
src-5d9573acf22a9edd86ad236325dc62d534e52eb1.zip
ddb: unbreak ppc
usr/src/powerpc.powerpcspe/tmp/usr/include/strings.h:62: warning: shadowed declaration is here
Notes
Notes: svn path=/head/; revision=335271
Diffstat (limited to 'sbin/ddb')
-rw-r--r--sbin/ddb/ddb_capture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/ddb/ddb_capture.c b/sbin/ddb/ddb_capture.c
index d8836f52ac83..1bb27b5b7e93 100644
--- a/sbin/ddb/ddb_capture.c
+++ b/sbin/ddb/ddb_capture.c
@@ -83,12 +83,12 @@ kread(kvm_t *kvm, void *kvm_pointer, void *address, size_t size,
}
static int
-kread_symbol(kvm_t *kvm, int index, void *address, size_t size,
+kread_symbol(kvm_t *kvm, int read_index, void *address, size_t size,
size_t offset)
{
ssize_t ret;
- ret = kvm_read(kvm, namelist[index].n_value + offset, address, size);
+ ret = kvm_read(kvm, namelist[read_index].n_value + offset, address, size);
if (ret < 0 || (size_t)ret != size)
return (-1);
return (0);