From 25d9b10ee98a353a15d1cd2369260e514a9d3901 Mon Sep 17 00:00:00 2001 From: he Date: Thu, 21 Aug 2003 23:00:07 +0000 Subject: [PATCH] Add casts of LINUX_USRSTACK and USRSTACK to handle the cases where these are not constants. --- sys/miscfs/procfs/procfs_linux.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/miscfs/procfs/procfs_linux.c b/sys/miscfs/procfs/procfs_linux.c index ee0681b65b38..1c094b2bb392 100644 --- a/sys/miscfs/procfs/procfs_linux.c +++ b/sys/miscfs/procfs/procfs_linux.c @@ -1,4 +1,4 @@ -/* $NetBSD: procfs_linux.c,v 1.13 2003/08/09 16:28:49 christos Exp $ */ +/* $NetBSD: procfs_linux.c,v 1.14 2003/08/21 23:00:07 he Exp $ */ /* * Copyright (c) 2001 Wasabi Systems, Inc. @@ -36,7 +36,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: procfs_linux.c,v 1.13 2003/08/09 16:28:49 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: procfs_linux.c,v 1.14 2003/08/21 23:00:07 he Exp $"); #include #include @@ -145,10 +145,10 @@ procfs_do_pid_stat(struct proc *p, struct lwp *l, struct pfsnode *pfs, #ifdef LINUX_USRSTACK if (strcmp(p->p_emul->e_name, "linux") == 0 && LINUX_USRSTACK < USRSTACK) - sstack = LINUX_USRSTACK; + sstack = (unsigned long) LINUX_USRSTACK; else #endif - sstack = USRSTACK; + sstack = (unsigned long) USRSTACK; if (map != &curproc->p_vmspace->vm_map) vm_map_unlock_read(map);