summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorats <ats@FreeBSD.org>1994-12-02 23:00:40 +0000
committerats <ats@FreeBSD.org>1994-12-02 23:00:40 +0000
commit845a3c7267ee7d32e5682cdcde5f403dbcd7956b (patch)
treeb92273f6211e8e5dad008bab3dc2416365ab943c /sys
parent6184e30f9c299b13e8a5462dc336bdd245f8b024 (diff)
downloadFreeBSD-src-845a3c7267ee7d32e5682cdcde5f403dbcd7956b.zip
FreeBSD-src-845a3c7267ee7d32e5682cdcde5f403dbcd7956b.tar.gz
Add one forgotten u_quad_t typecast in dosetrlimit.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_resource.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c
index 640cf94..846076b 100644
--- a/sys/kern/kern_resource.c
+++ b/sys/kern/kern_resource.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_resource.c 8.5 (Berkeley) 1/21/94
- * $Id: kern_resource.c,v 1.7 1994/10/10 01:00:46 phk Exp $
+ * $Id: kern_resource.c,v 1.8 1994/12/01 20:20:21 ats Exp $
*/
#include <sys/param.h>
@@ -383,7 +383,7 @@ dosetrlimit(p, which, limp)
vm_size_t size;
vm_prot_t prot;
- if ((u_quad_t) limp->rlim_cur > alimp->rlim_cur) {
+ if ((u_quad_t) limp->rlim_cur > (u_quad_t) alimp->rlim_cur) {
prot = VM_PROT_ALL;
size = limp->rlim_cur - alimp->rlim_cur;
addr = USRSTACK - limp->rlim_cur;
OpenPOWER on IntegriCloud