summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorEric Jackson <ericj@cvs.openbsd.org>2002-02-18 23:12:05 +0000
committerEric Jackson <ericj@cvs.openbsd.org>2002-02-18 23:12:05 +0000
commit5b06d081bab2c17b23824911131c523c59cfba2a (patch)
treec0170c6ae4ef156bb8d8b51f2fefe5d884a62e17 /sys/kern
parent061518d9e9cccb6b9575708a32a5d7a1ebdccbb6 (diff)
fix issue on LP64 BE arch's w/ fcntl's F_GETOWN
pointed out by der Mouse <mouse@Rodents.Montreal.QC.CA>
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_descrip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index 363d4be0a4f..a04cf04bb7b 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_descrip.c,v 1.53 2002/02/13 19:08:06 art Exp $ */
+/* $OpenBSD: kern_descrip.c,v 1.54 2002/02/18 23:12:04 ericj Exp $ */
/* $NetBSD: kern_descrip.c,v 1.42 1996/03/30 22:24:38 christos Exp $ */
/*
@@ -371,8 +371,8 @@ restart:
break;
}
error = (*fp->f_ops->fo_ioctl)
- (fp, TIOCGPGRP, (caddr_t)retval, p);
- *retval = -*retval;
+ (fp, TIOCGPGRP, (caddr_t)&tmp, p);
+ *retval = -tmp;
break;
case F_SETOWN: