Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jun 2018 00:00:24 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335271 - head/sbin/ddb
Message-ID:  <201806170000.w5H00OLd086735@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Sun Jun 17 00:00:24 2018
New Revision: 335271
URL: https://svnweb.freebsd.org/changeset/base/335271

Log:
  ddb: unbreak ppc
  
  usr/src/powerpc.powerpcspe/tmp/usr/include/strings.h:62:
  warning: shadowed declaration is here

Modified:
  head/sbin/ddb/ddb_capture.c

Modified: head/sbin/ddb/ddb_capture.c
==============================================================================
--- head/sbin/ddb/ddb_capture.c	Sat Jun 16 23:50:34 2018	(r335270)
+++ head/sbin/ddb/ddb_capture.c	Sun Jun 17 00:00:24 2018	(r335271)
@@ -83,12 +83,12 @@ kread(kvm_t *kvm, void *kvm_pointer, void *address, si
 }
 
 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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806170000.w5H00OLd086735>