summaryrefslogtreecommitdiffstats
path: root/include/vis.h
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2010-08-24 23:49:06 +0000
committerdjm <djm@openbsd.org>2010-08-24 23:49:06 +0000
commit24f1563c489f5c5401f43cd512eadd73f9a3dcc9 (patch)
treef3dc40583f554aa0d634e18f6482027da276cac2 /include/vis.h
parentspaces (diff)
downloadwireguard-openbsd-24f1563c489f5c5401f43cd512eadd73f9a3dcc9.tar.xz
wireguard-openbsd-24f1563c489f5c5401f43cd512eadd73f9a3dcc9.zip
backout VIS_HEX. guenther@ points out that the C89 \xff encoding
idiotically accepts more then two hex digits following the \x, even on platforms where a char has 8 bits. It is therefore dangerous to have an almost-bit-not-quite compatible format in vis(3). The VIS_ALL (encode all characters) option introduced in the same commit remains.
Diffstat (limited to 'include/vis.h')
-rw-r--r--include/vis.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/vis.h b/include/vis.h
index 67fdfe86af2..5be397e8875 100644
--- a/include/vis.h
+++ b/include/vis.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vis.h,v 1.12 2010/08/23 02:07:50 djm Exp $ */
+/* $OpenBSD: vis.h,v 1.13 2010/08/24 23:49:06 djm Exp $ */
/* $NetBSD: vis.h,v 1.4 1994/10/26 00:56:41 cgd Exp $ */
/*-
@@ -40,7 +40,6 @@
*/
#define VIS_OCTAL 0x01 /* use octal \ddd format */
#define VIS_CSTYLE 0x02 /* use \[nrft0..] where appropriate */
-#define VIS_HEX 0x200 /* use hex \xdd format */
/*
* to alter set of characters encoded (default is to encode all