From 7d64e500af627b20e01cc82395394c84f3532736 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Tue, 30 Nov 2004 19:50:39 +0000 Subject: [PATCH] Changed terminal io defines --- mbsebbs/openport.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mbsebbs/openport.c b/mbsebbs/openport.c index dc9c21a4..b70db417 100644 --- a/mbsebbs/openport.c +++ b/mbsebbs/openport.c @@ -303,20 +303,20 @@ int cookedport(void) void sendbrk(void) { Syslog('t', "Send break"); - + if (isatty(0)) { #ifdef USE_TERMIOS - tcsendbreak(fd,0); + tcsendbreak(0, 0); #endif #ifdef USE_TERMIO - ioctl(fd, TCSBRK, 0); + ioctl(0, TCSBRK, 0); #endif #ifdef USE_SGTTY #ifdef TIOCSBRK sleep(1); - ioctl(fd, TIOCSBRK, 0); + ioctl(0, TIOCSBRK, 0); sleep(1); - ioctl(fd, TIOCCBRK, 0); + ioctl(0, TIOCCBRK, 0); #endif #endif }