summaryrefslogtreecommitdiff
path: root/include
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
parentff5b8ad386d900e4a4c11ecdfb52dceadd9d0ee9 (diff)
downloadmusl-a0217a2ff78ce88fe90e3345d2ee35ab53e3901e.tar.gz
musl-a0217a2ff78ce88fe90e3345d2ee35ab53e3901e.tar.bz2
musl-a0217a2ff78ce88fe90e3345d2ee35ab53e3901e.tar.xz
musl-a0217a2ff78ce88fe90e3345d2ee35ab53e3901e.zip
fix unprotected macro argument in sys/ttydefaults.h
Diffstat (limited to 'include')
-rw-r--r--include/sys/ttydefaults.h2
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