Source-Changes-HG archive

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

[src/trunk]: src/sys/kern fix rev 1.44; make this cast look like:



details:   https://anonhg.NetBSD.org/src/rev/99dc953d7879
branches:  trunk
changeset: 495446:99dc953d7879
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Jul 28 04:31:19 2000 +0000

description:
fix rev 1.44; make this cast look like:
        sig = (int)(long)*(caddr_t *)data;
to *properly* dereference the passed data.  this makes signals on
ptys actually *work* on the sparc64 port.  from mycroft.


XXX: the release branch version needs this ASAP as it is probably
unstable on ILP32BE.

diffstat:

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

diffs (18 lines):

diff -r 3b84380d9b6c -r 99dc953d7879 sys/kern/tty_pty.c
--- a/sys/kern/tty_pty.c        Fri Jul 28 04:21:26 2000 +0000
+++ b/sys/kern/tty_pty.c        Fri Jul 28 04:31:19 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tty_pty.c,v 1.45 2000/07/27 17:32:11 mason Exp $       */
+/*     $NetBSD: tty_pty.c,v 1.46 2000/07/28 04:31:19 mrg Exp $ */
 
 /*
  * Copyright (c) 1982, 1986, 1989, 1993
@@ -667,7 +667,7 @@
                        break;
 
                case TIOCSIG:
-                       sig = (int)*data;
+                       sig = (int)(long)*(caddr_t *)data;
                        if (sig <= 0 || sig >= NSIG)
                                return (EINVAL);
                        if (!ISSET(tp->t_lflag, NOFLSH))



Home | Main Index | Thread Index | Old Index