summaryrefslogtreecommitdiff
path: root/usr.bin/top
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2012-07-09 22:41:46 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2012-07-09 22:41:46 +0000
commitebe82fe05c5ea31e320f70d08e7904f0542eec47 (patch)
tree6b6bbf0f0bfdd18f8f6fb39866d16ce841581186 /usr.bin/top
parenteab3fae2c20e4df0ab568b2c83b6e9d014bb51b6 (diff)
According to miod, KERNBASE used as a userland symbol should die
in a fire. Start by removing the definitions, before we clean the headers later.
Diffstat (limited to 'usr.bin/top')
-rw-r--r--usr.bin/top/machine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c
index 65cc6fe401c..c3ff731872c 100644
--- a/usr.bin/top/machine.c
+++ b/usr.bin/top/machine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machine.c,v 1.73 2012/06/05 18:52:53 brynet Exp $ */
+/* $OpenBSD: machine.c,v 1.74 2012/07/09 22:41:45 deraadt Exp $ */
/*-
* Copyright (c) 1994 Thorsten Lockert <tholo@sigmasoft.com>
@@ -483,7 +483,7 @@ format_next_process(caddr_t handle, char *(*get_userid)(uid_t), pid_t *pid)
p_wait = pp->p_wmesg;
else {
snprintf(waddr, sizeof(waddr), "%llx",
- (unsigned long long)(pp->p_wchan & ~KERNBASE));
+ (unsigned long long)pp->p_wchan);
p_wait = waddr;
}
} else