Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Oct 2017 19:58:21 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r324566 - head/tests/sys/kern
Message-ID:  <201710121958.v9CJwLTx067066@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Thu Oct 12 19:58:21 2017
New Revision: 324566
URL: https://svnweb.freebsd.org/changeset/base/324566

Log:
  Fix shadowed variable hidden by WARNS changing to 3 in r313006.
  
  Sponsored by:	Dell EMC Isilon
  MFC after:	1 week

Modified:
  head/tests/sys/kern/ptrace_test.c

Modified: head/tests/sys/kern/ptrace_test.c
==============================================================================
--- head/tests/sys/kern/ptrace_test.c	Thu Oct 12 18:31:28 2017	(r324565)
+++ head/tests/sys/kern/ptrace_test.c	Thu Oct 12 19:58:21 2017	(r324566)
@@ -3084,7 +3084,7 @@ ATF_TC_BODY(ptrace__PT_ATTACH_with_SBDRY_thread, tc)
 	ATF_REQUIRE((child = fork()) != -1);
 	if (child == 0) {
 		pthread_t t[2];
-		int error, cfd;
+		int cfd;
 
 		error = pthread_barrier_wait(&barrier);
 		if (error != 0 && error != PTHREAD_BARRIER_SERIAL_THREAD)



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