Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/telnet Remove some effectively if 0'd code.



details:   https://anonhg.NetBSD.org/src/rev/712138ee1034
branches:  trunk
changeset: 446672:712138ee1034
user:      maya <maya%NetBSD.org@localhost>
date:      Fri Dec 14 06:27:40 2018 +0000

description:
Remove some effectively if 0'd code.

diffstat:

 usr.bin/telnet/sys_bsd.c |  30 ++----------------------------
 1 files changed, 2 insertions(+), 28 deletions(-)

diffs (51 lines):

diff -r 7f9a22441f96 -r 712138ee1034 usr.bin/telnet/sys_bsd.c
--- a/usr.bin/telnet/sys_bsd.c  Fri Dec 14 06:17:30 2018 +0000
+++ b/usr.bin/telnet/sys_bsd.c  Fri Dec 14 06:27:40 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_bsd.c,v 1.38 2018/12/14 06:17:30 maya Exp $        */
+/*     $NetBSD: sys_bsd.c,v 1.39 2018/12/14 06:27:40 maya Exp $        */
 
 /*
  * Copyright (c) 1988, 1990, 1993
@@ -34,7 +34,7 @@
 #if 0
 from: static char sccsid[] = "@(#)sys_bsd.c    8.4 (Berkeley) 5/30/95";
 #else
-__RCSID("$NetBSD: sys_bsd.c,v 1.38 2018/12/14 06:17:30 maya Exp $");
+__RCSID("$NetBSD: sys_bsd.c,v 1.39 2018/12/14 06:27:40 maya Exp $");
 #endif
 #endif /* not lint */
 
@@ -76,32 +76,6 @@
 struct termios old_tc = { .c_iflag = 0 };
 extern struct termios new_tc;
 
-# ifndef       TCSANOW
-#  ifdef TCSETS
-#   define     TCSANOW         TCSETS
-#   define     TCSADRAIN       TCSETSW
-#   define     tcgetattr(f, t) ioctl(f, TCGETS, (char *)t)
-#  else
-#   ifdef TCSETA
-#    define    TCSANOW         TCSETA
-#    define    TCSADRAIN       TCSETAW
-#    define    tcgetattr(f, t) ioctl(f, TCGETA, (char *)t)
-#   else
-#    define    TCSANOW         TIOCSETA
-#    define    TCSADRAIN       TIOCSETAW
-#    define    tcgetattr(f, t) ioctl(f, TIOCGETA, (char *)t)
-#   endif
-#  endif
-#  define      tcsetattr(f, a, t) ioctl(f, a, (char *)t)
-#  define      cfgetospeed(ptr)        ((ptr)->c_cflag&CBAUD)
-#  ifdef CIBAUD
-#   define     cfgetispeed(ptr)        (((ptr)->c_cflag&CIBAUD) >> IBSHIFT)
-#  else
-#   define     cfgetispeed(ptr)        cfgetospeed(ptr)
-#  endif
-# endif /* TCSANOW */
-
-
 void
 init_sys(void)
 {



Home | Main Index | Thread Index | Old Index