public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Samuel Thibault <sthibaul@sourceware.org>
To: glibc-cvs@sourceware.org
Subject: [glibc] hurd: Fix tcflag_t and speed_t types on 64-bit
Date: Sun, 12 Feb 2023 19:03:34 +0000 (GMT)	[thread overview]
Message-ID: <20230212190334.9B6F53858D1E@sourceware.org> (raw)

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

                 reply	other threads:[~2023-02-12 19:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230212190334.9B6F53858D1E@sourceware.org \
    --to=sthibaul@sourceware.org \
    --cc=glibc-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).