freebsd-ports/comms/conserver/files/patch-ac
David E. O'Brien 6915d59bcf Upgrade to version 8.5
[based on patch submitted in PR, but greatly re-worked by me]

PR:		14970
Submitted by:	Andrew J. Korty <ajk@waterspout.com>
2000-11-23 12:03:36 +00:00

32 lines
880 B
Plaintext

--- etc/conserver/group.c.orig Wed Nov 17 18:07:38 1999
+++ etc/conserver/group.c Wed Nov 17 18:09:43 1999
@@ -902,7 +902,7 @@
#endif
#if USE_TERMIO
if (-1 == ioctl(pCEServing->fdtty, TCSBRK, (char *)0)) {
- CSTROUT(pCLServing->fd, "failed]\r\n");
+ CSTROUT(pCLServing->fd, "tcsendbreak failed]\r\n");
continue;
}
#else
@@ -1274,15 +1274,12 @@
continue;
}
#if !defined(XTABS) /* XXX hack */
-#define XTABS TAB3
+#define XTABS OXTABS
#endif
- if (XTABS == (TABDLY&sbuf.c_oflag)) {
- sbuf.c_oflag &= ~TABDLY;
- sbuf.c_oflag |= TAB0;
- } else {
- sbuf.c_oflag &= ~TABDLY;
+ if (XTABS & sbuf.c_oflag)
+ sbuf.c_oflag &= ~XTABS;
+ else
sbuf.c_oflag |= XTABS;
- }
if (-1 == tcsetattr(pCEServing->fdtty, TCSANOW, & sbuf)) {
CSTROUT(pCLServing->fd, "failed]\r\n");
continue;