public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Gaius Mulley <gaius@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/modula-2] PR-107611 Use correct parameter type in termios (doUnset). Date: Thu, 24 Nov 2022 17:03:28 +0000 (GMT) [thread overview] Message-ID: <20221124170328.73665382FCB0@sourceware.org> (raw) https://gcc.gnu.org/g:deaeee4c187c8685dfb87d6b67a256ff32c30733 commit deaeee4c187c8685dfb87d6b67a256ff32c30733 Author: Gaius Mulley <gaius.mulley@southwales.ac.uk> Date: Thu Nov 24 17:02:48 2022 +0000 PR-107611 Use correct parameter type in termios (doUnset). 2022-11-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> gcc/m2/ChangeLog: * gm2-libs-ch/termios.c (doUnset): Use correct parameter tcflag_t *. * mc-boot-ch/Gtermios.cc (doUnset): Use correct parameter tcflag_t *. * pge-boot/Gtermios.cc (doUnset): Use correct parameter tcflag_t *. libgm2/ChangeLog: * libm2pim/termios.cc (doUnset): Use correct parameter tcflag_t *. Signed-off-by: Gaius Mulley <gaius.mulley@southwales.ac.uk> Diff: --- gcc/m2/gm2-libs-ch/termios.c | 4 ++-- gcc/m2/mc-boot-ch/Gtermios.cc | 2 +- gcc/m2/pge-boot/Gtermios.cc | 2 +- libgm2/libm2pim/termios.cc | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gcc/m2/gm2-libs-ch/termios.c b/gcc/m2/gm2-libs-ch/termios.c index 73d9e11a9b4..7075d25bb98 100644 --- a/gcc/m2/gm2-libs-ch/termios.c +++ b/gcc/m2/gm2-libs-ch/termios.c @@ -195,7 +195,7 @@ int EXPORT (SetChar) (struct termios *t, ControlChar c, char ch); int EXPORT (tcsnow) (void); int EXPORT (tcsflush) (void); int EXPORT (tcsdrain) (void); -int doSetUnset (unsigned int *bitset, unsigned int mask, int value); +int doSetUnset (tcflag_t *bitset, unsigned int mask, int value); void _M2_termios_init (void); void _M2_termios_finish (void); @@ -376,7 +376,7 @@ int EXPORT (tcflowoffo) (int fd) /* doSetUnset - applies mask or undoes mask depending upon value. */ int -doSetUnset (unsigned int *bitset, unsigned int mask, int value) +doSetUnset (tcflag_t *bitset, unsigned int mask, int value) { if (value) (*bitset) |= mask; diff --git a/gcc/m2/mc-boot-ch/Gtermios.cc b/gcc/m2/mc-boot-ch/Gtermios.cc index 5982b5f9ea2..79c22005804 100644 --- a/gcc/m2/mc-boot-ch/Gtermios.cc +++ b/gcc/m2/mc-boot-ch/Gtermios.cc @@ -165,7 +165,7 @@ typedef enum { } Flag; int -doSetUnset (unsigned int *bitset, unsigned int mask, int value) +doSetUnset (tcflag_t *bitset, unsigned int mask, int value) { if (value) (*bitset) |= mask; diff --git a/gcc/m2/pge-boot/Gtermios.cc b/gcc/m2/pge-boot/Gtermios.cc index 5982b5f9ea2..79c22005804 100644 --- a/gcc/m2/pge-boot/Gtermios.cc +++ b/gcc/m2/pge-boot/Gtermios.cc @@ -165,7 +165,7 @@ typedef enum { } Flag; int -doSetUnset (unsigned int *bitset, unsigned int mask, int value) +doSetUnset (tcflag_t *bitset, unsigned int mask, int value) { if (value) (*bitset) |= mask; diff --git a/libgm2/libm2pim/termios.cc b/libgm2/libm2pim/termios.cc index 3015ee1380d..b446bb80cf3 100644 --- a/libgm2/libm2pim/termios.cc +++ b/libgm2/libm2pim/termios.cc @@ -213,7 +213,7 @@ extern "C" int EXPORT (SetChar) (struct termios *t, ControlChar c, char ch); extern "C" int EXPORT (tcsnow) (void); extern "C" int EXPORT (tcsflush) (void); extern "C" int EXPORT (tcsdrain) (void); -extern "C" int doSetUnset (unsigned int *bitset, unsigned int mask, int value); +extern "C" int doSetUnset (tcflag_t *bitset, unsigned int mask, int value); /* InitTermios new data structure. */ @@ -413,7 +413,7 @@ EXPORT (tcflowoffo) (int fd) /* doSetUnset applies mask or undoes mask depending upon value. */ extern "C" int -doSetUnset (unsigned int *bitset, unsigned int mask, int value) +doSetUnset (tcflag_t *bitset, unsigned int mask, int value) { if (value) (*bitset) |= mask;
reply other threads:[~2022-11-24 17: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=20221124170328.73665382FCB0@sourceware.org \ --to=gaius@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.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: linkBe 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).