Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/svr4_32 Remove unnecessary caddr_t casts



details:   https://anonhg.NetBSD.org/src/rev/806ded3c7b55
branches:  trunk
changeset: 545817:806ded3c7b55
user:      dsl <dsl%NetBSD.org@localhost>
date:      Wed Apr 16 19:20:33 2003 +0000

description:
Remove unnecessary caddr_t casts

diffstat:

 sys/compat/svr4_32/svr4_32_termios.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (61 lines):

diff -r a0c105e5b9de -r 806ded3c7b55 sys/compat/svr4_32/svr4_32_termios.c
--- a/sys/compat/svr4_32/svr4_32_termios.c      Wed Apr 16 19:16:42 2003 +0000
+++ b/sys/compat/svr4_32/svr4_32_termios.c      Wed Apr 16 19:20:33 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: svr4_32_termios.c,v 1.4 2003/03/22 07:54:22 nakayama Exp $      */
+/*     $NetBSD: svr4_32_termios.c,v 1.5 2003/04/16 19:20:33 dsl Exp $   */
 
 /*-
  * Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: svr4_32_termios.c,v 1.4 2003/03/22 07:54:22 nakayama Exp $");
+__KERNEL_RCSID(0, "$NetBSD: svr4_32_termios.c,v 1.5 2003/04/16 19:20:33 dsl Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -524,7 +524,7 @@
        switch (cmd) {
        case SVR4_TCGETA:
        case SVR4_TCGETS:
-               if ((error = (*ctl)(fp, TIOCGETA, (caddr_t) &bt, p)) != 0)
+               if ((error = (*ctl)(fp, TIOCGETA,  &bt, p)) != 0)
                        return error;
 
                memset(&st, 0, sizeof(st));
@@ -551,7 +551,7 @@
        case SVR4_TCSETAF:
        case SVR4_TCSETSF:
                /* get full BSD termios so we don't lose information */
-               if ((error = (*ctl)(fp, TIOCGETA, (caddr_t) &bt, p)) != 0)
+               if ((error = (*ctl)(fp, TIOCGETA,  &bt, p)) != 0)
                        return error;
 
                switch (cmd) {
@@ -602,13 +602,13 @@
                print_svr4_32_termios(&st);
 #endif /* DEBUG_SVR4 */
 
-               return (*ctl)(fp, cmd, (caddr_t) &bt, p);
+               return (*ctl)(fp, cmd,  &bt, p);
 
        case SVR4_TIOCGWINSZ:
                {
                        struct svr4_winsize ws;
 
-                       error = (*ctl)(fp, TIOCGWINSZ, (caddr_t) &ws, p);
+                       error = (*ctl)(fp, TIOCGWINSZ,  &ws, p);
                        if (error)
                                return error;
                        return copyout(&ws, data, sizeof(ws));
@@ -620,7 +620,7 @@
 
                        if ((error = copyin(data, &ws, sizeof(ws))) != 0)
                                return error;
-                       return (*ctl)(fp, TIOCSWINSZ, (caddr_t) &ws, p);
+                       return (*ctl)(fp, TIOCSWINSZ,  &ws, p);
                }
 
        default:



Home | Main Index | Thread Index | Old Index