Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Reduce #ifdefs
details: https://anonhg.NetBSD.org/src/rev/6cc508c1c7ea
branches: trunk
changeset: 352247:6cc508c1c7ea
user: skrll <skrll%NetBSD.org@localhost>
date: Wed Mar 22 22:11:47 2017 +0000
description:
Reduce #ifdefs
diffstat:
sys/kern/sys_process.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diffs (37 lines):
diff -r c6081b571e5f -r 6cc508c1c7ea sys/kern/sys_process.c
--- a/sys/kern/sys_process.c Wed Mar 22 21:33:06 2017 +0000
+++ b/sys/kern/sys_process.c Wed Mar 22 22:11:47 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_process.c,v 1.175 2016/11/02 00:11:59 pgoyette Exp $ */
+/* $NetBSD: sys_process.c,v 1.176 2017/03/22 22:11:47 skrll Exp $ */
/*-
* Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -118,7 +118,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_process.c,v 1.175 2016/11/02 00:11:59 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_process.c,v 1.176 2017/03/22 22:11:47 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_ptrace.h"
@@ -155,9 +155,6 @@
int error;
size_t len;
-#ifdef PMAP_NEED_PROCWR
- vaddr_t addr;
-#endif
error = 0;
len = uio->uio_resid;
@@ -166,7 +163,7 @@
return 0;
#ifdef PMAP_NEED_PROCWR
- addr = uio->uio_offset;
+ vaddr_t addr = uio->uio_offset;
#endif
vm = p->p_vmspace;
Home |
Main Index |
Thread Index |
Old Index