summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2007-02-04 14:58:46 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2007-02-04 14:58:46 +0000
commit7b28c01fd3b8aed3eeccb2fdf96e7d8a1139d9a1 (patch)
treecbd08798cd869a6033c9bfa91d1780b8297d9997 /usr.bin
parent711499ec7ced45d0f01061c4c8685e094afc9f5a (diff)
long and long long is not the same on 32 bits archs
Diffstat (limited to 'usr.bin')
-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 3b4d5242a61..d5b07e9c954 100644
--- a/usr.bin/top/machine.c
+++ b/usr.bin/top/machine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machine.c,v 1.56 2007/01/03 18:57:49 otto Exp $ */
+/* $OpenBSD: machine.c,v 1.57 2007/02/04 14:58:45 otto Exp $ */
/*-
* Copyright (c) 1994 Thorsten Lockert <tholo@sigmasoft.com>
@@ -487,7 +487,7 @@ format_next_process(caddr_t handle, char *(*get_userid)(uid_t))
p_wait = pp->p_wmesg;
else {
snprintf(waddr, sizeof(waddr), "%llx",
- pp->p_wchan & ~KERNBASE);
+ (unsigned long long)(pp->p_wchan & ~KERNBASE));
p_wait = waddr;
}
} else