Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/kern pullup 1.46 (approved by thorpej):



details:   https://anonhg.NetBSD.org/src/rev/81a07d54d7b2
branches:  netbsd-1-5
changeset: 488795:81a07d54d7b2
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Jul 29 04:19:43 2000 +0000

description:
pullup 1.46 (approved by thorpej):
>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.

diffstat:

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

diffs (18 lines):

diff -r 0ec8d81393fb -r 81a07d54d7b2 sys/kern/tty_pty.c
--- a/sys/kern/tty_pty.c        Fri Jul 28 23:09:37 2000 +0000
+++ b/sys/kern/tty_pty.c        Sat Jul 29 04:19:43 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tty_pty.c,v 1.43.4.1 2000/07/20 00:16:00 fvdl Exp $    */
+/*     $NetBSD: tty_pty.c,v 1.43.4.2 2000/07/29 04:19:43 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