openbsd-ports/comms/conserver/patches/patch-conserver_consent_c
2003-05-26 20:20:53 +00:00

30 lines
941 B
Plaintext

$OpenBSD: patch-conserver_consent_c,v 1.1 2003/05/26 20:20:53 pvalchev Exp $
--- conserver/consent.c.orig Sun Apr 6 06:32:41 2003
+++ conserver/consent.c Sat May 24 14:14:43 2003
@@ -45,8 +45,8 @@
#include <sys/file.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <arpa/inet.h>
#include <netinet/in.h>
+#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
#include <ctype.h>
@@ -508,12 +508,11 @@ VirtDev(pCE)
strerror(errno));
Bye(EX_OSERR);
}
- n_tio.c_iflag &= ~(IGNCR | IUCLC);
+
+ n_tio.c_iflag &= ~(IGNCR);
n_tio.c_iflag |= ICRNL | IXON | IXANY;
- n_tio.c_oflag &=
- ~(OLCUC | ONOCR | ONLRET | OFILL | NLDLY | CRDLY | TABDLY | BSDLY);
n_tio.c_oflag |= OPOST | ONLCR;
- n_tio.c_lflag &= ~(XCASE | NOFLSH | ECHOK | ECHONL);
+ n_tio.c_lflag &= ~(NOFLSH|ECHOK|ECHONL);
n_tio.c_lflag |= ISIG | ICANON | ECHO;
n_tio.c_cc[VEOF] = '\004';
n_tio.c_cc[VEOL] = '\000';