aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin (Intel) <hpa@zytor.com>2025-06-11 18:35:39 -0700
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2025-06-17 09:11:38 -0300
commitbbbaf50b2a340d6913b8ad8a840dd2d66874c62b (patch)
tree753710b50302ec37ab91957f98fe1cfda7976fd7
parentde730d3d2d9131398e56f69228d46d895f126a60 (diff)
downloadglibc-bbbaf50b2a340d6913b8ad8a840dd2d66874c62b.zip
glibc-bbbaf50b2a340d6913b8ad8a840dd2d66874c62b.tar.gz
glibc-bbbaf50b2a340d6913b8ad8a840dd2d66874c62b.tar.bz2
hurd+generic/termios: make speed_t an unsigned int
POSIX requires that speed_t is an unsigned integer type, so change the generic speed_t definition to be an unsigned int instead of a plain int. Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
-rw-r--r--bits/termios.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bits/termios.h b/bits/termios.h
index 9e3ed8e..398efa5 100644
--- a/bits/termios.h
+++ b/bits/termios.h
@@ -105,7 +105,7 @@ typedef unsigned int tcflag_t;
typedef unsigned char cc_t;
/* Type of baud rate specifiers. */
-typedef int speed_t;
+typedef unsigned int speed_t;
/* Terminal control structure. */
struct termios