]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd+generic/termios: make speed_t an unsigned int
authorH. Peter Anvin (Intel) <hpa@zytor.com>
Thu, 12 Jun 2025 01:35:39 +0000 (18:35 -0700)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 17 Jun 2025 12:11:38 +0000 (09:11 -0300)
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>
bits/termios.h

index 9e3ed8ee7a083714b3eb4a5184b80bc9bd879721..398efa5ddd2f2d3544de345a16498b9b5ce92016 100644 (file)
@@ -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