public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/modula-2] PR-107611 Use correct parameter type in termios (doUnset).
@ 2022-11-24 17:03 Gaius Mulley
0 siblings, 0 replies; only message in thread
From: Gaius Mulley @ 2022-11-24 17:03 UTC (permalink / raw)
To: gcc-cvs
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-24 17:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-24 17:03 [gcc/devel/modula-2] PR-107611 Use correct parameter type in termios (doUnset) Gaius Mulley
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).