Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern ifdef unused variable with -UPTRACE
details: https://anonhg.NetBSD.org/src/rev/46aa68692302
branches: trunk
changeset: 769709:46aa68692302
user: christos <christos%NetBSD.org@localhost>
date: Mon Sep 19 23:54:29 2011 +0000
description:
ifdef unused variable with -UPTRACE
diffstat:
sys/kern/kern_subr.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 6d43e0d7908c -r 46aa68692302 sys/kern/kern_subr.c
--- a/sys/kern/kern_subr.c Mon Sep 19 21:24:57 2011 +0000
+++ b/sys/kern/kern_subr.c Mon Sep 19 23:54:29 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_subr.c,v 1.211 2011/08/31 23:42:46 jmcneill Exp $ */
+/* $NetBSD: kern_subr.c,v 1.212 2011/09/19 23:54:29 christos Exp $ */
/*-
* Copyright (c) 1997, 1998, 1999, 2002, 2007, 2008 The NetBSD Foundation, Inc.
@@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.211 2011/08/31 23:42:46 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_subr.c,v 1.212 2011/09/19 23:54:29 christos Exp $");
#include "opt_ddb.h"
#include "opt_md.h"
@@ -717,7 +717,9 @@
void
trace_exit(register_t code, register_t rval[], int error)
{
+#ifdef PTRACE
struct proc *p = curlwp->l_proc;
+#endif
#ifdef SYSCALL_DEBUG
scdebug_ret(code, error, rval);
Home |
Main Index |
Thread Index |
Old Index