summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/sys/termios.h6
-rw-r--r--sys/sys/ttydefaults.h6
-rw-r--r--sys/sys/unistd.h2
3 files changed, 7 insertions, 7 deletions
diff --git a/sys/sys/termios.h b/sys/sys/termios.h
index f4b19a4..8c83d1d 100644
--- a/sys/sys/termios.h
+++ b/sys/sys/termios.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)termios.h 8.3 (Berkeley) 3/28/94
- * $Id: termios.h,v 1.3 1994/08/02 07:53:46 davidg Exp $
+ * $Id: termios.h,v 1.4 1995/04/30 14:56:30 bde Exp $
*/
#ifndef _SYS_TERMIOS_H_
@@ -78,10 +78,10 @@
#endif
#define NCCS 20
-#define _POSIX_VDISABLE ((unsigned char)'\377')
+#define _POSIX_VDISABLE 0xff
#ifndef _POSIX_SOURCE
-#define CCEQ(val, c) (c == val ? val != _POSIX_VDISABLE : 0)
+#define CCEQ(val, c) ((c) == (val) ? (val) != _POSIX_VDISABLE : 0)
#endif
/*
diff --git a/sys/sys/ttydefaults.h b/sys/sys/ttydefaults.h
index f0c6fc2..dfc7e47 100644
--- a/sys/sys/ttydefaults.h
+++ b/sys/sys/ttydefaults.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)ttydefaults.h 8.4 (Berkeley) 1/21/94
- * $Id: ttydefaults.h,v 1.6 1994/10/11 00:16:28 wollman Exp $
+ * $Id: ttydefaults.h,v 1.7 1995/03/06 02:50:49 nate Exp $
*/
/*
@@ -59,10 +59,10 @@
*/
#define CTRL(x) (x&037)
#define CEOF CTRL('d')
-#define CEOL ((unsigned char)'\377') /* XXX avoid _POSIX_VDISABLE */
+#define CEOL 0xff /* XXX avoid _POSIX_VDISABLE */
#define CERASE 0177
#define CINTR CTRL('c')
-#define CSTATUS ((unsigned char)'\377') /* XXX avoid _POSIX_VDISABLE */
+#define CSTATUS 0xff /* XXX avoid _POSIX_VDISABLE */
#define CKILL CTRL('u')
#define CMIN 1
#define CQUIT 034 /* FS, ^\ */
diff --git a/sys/sys/unistd.h b/sys/sys/unistd.h
index 389d7c5..1f63f61 100644
--- a/sys/sys/unistd.h
+++ b/sys/sys/unistd.h
@@ -56,7 +56,7 @@
/* too-long path components generate errors */
#define _POSIX_NO_TRUNC 1
/* may disable terminal special characters */
-#define _POSIX_VDISABLE ((unsigned char)'\377')
+#define _POSIX_VDISABLE 0xff
/* access function */
#define F_OK 0 /* test for existence of file */
OpenPOWER on IntegriCloud