public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] hurd: Fix tcflag_t and speed_t types on 64-bit
@ 2023-02-12 19:03 Samuel Thibault
  0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2023-02-12 19:03 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3e35b824a4dc0f6b67a7edaf4962e7492aed9d4f

commit 3e35b824a4dc0f6b67a7edaf4962e7492aed9d4f
Author: Sergey Bugaev <bugaevc@gmail.com>
Date:   Sun Feb 12 19:08:57 2023 +0300

    hurd: Fix tcflag_t and speed_t types on 64-bit
    
    These are supposed to stay 32-bit even on 64-bit systems. This matches
    BSD and Linux, as well as how these types are already defined in
    tioctl.defs
    
    Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>

Diff:
---
 bits/termios.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bits/termios.h b/bits/termios.h
index 4439c2f14e..6a883cebba 100644
--- a/bits/termios.h
+++ b/bits/termios.h
@@ -99,13 +99,13 @@
    `tcflag_t', `cc_t', `speed_t' and the `TC*' constants appropriately.  */
 
 /* Type of terminal control flag masks.  */
-typedef unsigned long int tcflag_t;
+typedef unsigned int tcflag_t;
 
 /* Type of control characters.  */
 typedef unsigned char cc_t;
 
 /* Type of baud rate specifiers.  */
-typedef long int speed_t;
+typedef int speed_t;
 
 /* Terminal control structure.  */
 struct termios

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-12 19:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-12 19:03 [glibc] hurd: Fix tcflag_t and speed_t types on 64-bit Samuel Thibault

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).