Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern fcntl(..., F_GETOWN, ...): fix LP64-BE bug; raised ...



details:   https://anonhg.NetBSD.org/src/rev/ca84765d1ab3
branches:  trunk
changeset: 521520:ca84765d1ab3
user:      kleink <kleink%NetBSD.org@localhost>
date:      Thu Jan 31 22:17:33 2002 +0000

description:
fcntl(..., F_GETOWN, ...): fix LP64-BE bug; raised by der Mouse
on tech-kern.

diffstat:

 sys/kern/kern_descrip.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 5616c608eaa3 -r ca84765d1ab3 sys/kern/kern_descrip.c
--- a/sys/kern/kern_descrip.c   Thu Jan 31 21:50:06 2002 +0000
+++ b/sys/kern/kern_descrip.c   Thu Jan 31 22:17:33 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_descrip.c,v 1.83 2001/12/07 07:09:29 jdolecek Exp $       */
+/*     $NetBSD: kern_descrip.c,v 1.84 2002/01/31 22:17:33 kleink Exp $ */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1991, 1993
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_descrip.c,v 1.83 2001/12/07 07:09:29 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_descrip.c,v 1.84 2002/01/31 22:17:33 kleink Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -314,8 +314,8 @@
                        goto out;
                }
                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:



Home | Main Index | Thread Index | Old Index