projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e31d16
)
hurd: Fix _NOFLSH value
author
Samuel Thibault
<samuel.thibault@ens-lyon.org>
Sun, 15 Jan 2023 19:54:42 +0000
(20:54 +0100)
committer
Samuel Thibault
<samuel.thibault@ens-lyon.org>
Sun, 15 Jan 2023 19:56:12 +0000
(20:56 +0100)
shifting 1 (thus an integer) left 31 bit is undefined behavior. We have to
make it an unsigned integer to properly get 0x80000000 (like done in other
places).
bits/termios.h
patch
|
blob
|
history
diff --git
a/bits/termios.h
b/bits/termios.h
index
ae62d00
..
4439c2f
100644
(file)
--- a/
bits/termios.h
+++ b/
bits/termios.h
@@
-246,7
+246,7
@@
struct termios
# define NOKERNINFO (1 << 25) /* Disable VSTATUS. */
# define PENDIN (1 << 29) /* Retype pending input (state). */
#endif
-#define _NOFLSH (1
<< 31)
/* Disable flush after interrupt. */
+#define _NOFLSH (1
U << 31)
/* Disable flush after interrupt. */
#define NOFLSH _NOFLSH
/* Control characters. */