[PATCH] Do not use obsolete XCASE terminal mode flag
Aleksander Morgado
aleksander at aleksander.es
Fri Nov 27 11:44:47 PST 2015
On Sat, Oct 17, 2015 at 4:53 PM, Felix Janda <felix.janda at posteo.de> wrote:
> The XCASE terminal mode flag because is no longer specified by POSIX
> and has no effect on linux. Because of the latter fact we can remove
> it. This fixes a compilation error with musl libc.
> ---
Pushed to git master, thanks.
> libqcdm/src/com.c | 2 +-
> libwmc/src/com.c | 2 +-
> src/mm-port-serial.c | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/libqcdm/src/com.c b/libqcdm/src/com.c
> index ad50dd0..d6283e0 100644
> --- a/libqcdm/src/com.c
> +++ b/libqcdm/src/com.c
> @@ -39,7 +39,7 @@ qcdm_port_setup (int fd)
> stbuf.c_iflag &= ~(HUPCL | IUTF8 | IUCLC | ISTRIP | IXON | IXOFF | IXANY | ICRNL);
> stbuf.c_oflag &= ~(OPOST | OCRNL | ONLCR | OLCUC | ONLRET);
> stbuf.c_lflag &= ~(ICANON | ISIG | IEXTEN | ECHO | ECHOE | ECHOK | ECHONL);
> - stbuf.c_lflag &= ~(NOFLSH | XCASE | TOSTOP | ECHOPRT | ECHOCTL | ECHOKE);
> + stbuf.c_lflag &= ~(NOFLSH | TOSTOP | ECHOPRT | ECHOCTL | ECHOKE);
> stbuf.c_cc[VMIN] = 1;
> stbuf.c_cc[VTIME] = 0;
> stbuf.c_cc[VEOF] = 1;
> diff --git a/libwmc/src/com.c b/libwmc/src/com.c
> index 2f4d3b3..f27d49a 100644
> --- a/libwmc/src/com.c
> +++ b/libwmc/src/com.c
> @@ -39,7 +39,7 @@ wmc_port_setup (int fd)
> stbuf.c_iflag &= ~(HUPCL | IUTF8 | IUCLC | ISTRIP | IXON | IXOFF | IXANY | ICRNL);
> stbuf.c_oflag &= ~(OPOST | OCRNL | ONLCR | OLCUC | ONLRET);
> stbuf.c_lflag &= ~(ICANON | ISIG | IEXTEN | ECHO | ECHOE | ECHOK | ECHONL);
> - stbuf.c_lflag &= ~(NOFLSH | XCASE | TOSTOP | ECHOPRT | ECHOCTL | ECHOKE);
> + stbuf.c_lflag &= ~(NOFLSH | TOSTOP | ECHOPRT | ECHOCTL | ECHOKE);
> stbuf.c_cc[VMIN] = 1;
> stbuf.c_cc[VTIME] = 0;
> stbuf.c_cc[VEOF] = 1;
> diff --git a/src/mm-port-serial.c b/src/mm-port-serial.c
> index 3af1b8e..7dd2593 100644
> --- a/src/mm-port-serial.c
> +++ b/src/mm-port-serial.c
> @@ -455,7 +455,7 @@ real_config_fd (MMPortSerial *self, int fd, GError **error)
>
> stbuf.c_iflag &= ~(IGNCR | ICRNL | IUCLC | INPCK | IXON | IXANY );
> stbuf.c_oflag &= ~(OPOST | OLCUC | OCRNL | ONLCR | ONLRET);
> - stbuf.c_lflag &= ~(ICANON | XCASE | ECHO | ECHOE | ECHONL);
> + stbuf.c_lflag &= ~(ICANON | ECHO | ECHOE | ECHONL);
> stbuf.c_lflag &= ~(ECHO | ECHOE);
> stbuf.c_cc[VMIN] = 1;
> stbuf.c_cc[VTIME] = 0;
> --
> 2.4.9
> _______________________________________________
> ModemManager-devel mailing list
> ModemManager-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/modemmanager-devel
--
Aleksander
https://aleksander.es
More information about the ModemManager-devel
mailing list