From: H. Peter Anvin (Intel) Date: Thu, 12 Jun 2025 01:35:39 +0000 (-0700) Subject: hurd+generic/termios: make speed_t an unsigned int X-Git-Tag: glibc-2.42~124 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bbbaf50b2a340d6913b8ad8a840dd2d66874c62b;p=thirdparty%2Fglibc.git 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 Signed-off-by: H. Peter Anvin (Intel) --- diff --git a/bits/termios.h b/bits/termios.h index 9e3ed8ee7a..398efa5ddd 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