musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/include/sys/ttydefaults.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2020年01月29日 10:47:19 -0500
committerRich Felker <dalias@aerifal.cx>2020年01月29日 10:47:19 -0500
commita0217a2ff78ce88fe90e3345d2ee35ab53e3901e (patch)
tree33c48a0e6b1fe7bb75dd92b9e23c3fd913bd8be2 /include/sys/ttydefaults.h
parentff5b8ad386d900e4a4c11ecdfb52dceadd9d0ee9 (diff)
downloadmusl-a0217a2ff78ce88fe90e3345d2ee35ab53e3901e.tar.gz
fix unprotected macro argument in sys/ttydefaults.h
Diffstat (limited to 'include/sys/ttydefaults.h')
-rw-r--r--include/sys/ttydefaults.h 2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/ttydefaults.h b/include/sys/ttydefaults.h
index d251b715..e5d4da2b 100644
--- a/include/sys/ttydefaults.h
+++ b/include/sys/ttydefaults.h
@@ -6,7 +6,7 @@
#define TTYDEF_LFLAG (ECHO | ICANON | ISIG | IEXTEN | ECHOE|ECHOKE|ECHOCTL)
#define TTYDEF_CFLAG (CREAD | CS7 | PARENB | HUPCL)
#define TTYDEF_SPEED (B9600)
-#define CTRL(x) (x&037)
+#define CTRL(x) ((x)&037)
#define CEOF CTRL('d')
#ifdef _POSIX_VDISABLE
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月09日 02:11:02 +0000

AltStyle によって変換されたページ (->オリジナル) /