mescc: Mes C Library: isatty: Use fixed array size for M2-Planet.

* lib/m2/isatty.c (struct ktermios)[c_cc]: Hardcode to size 19.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2020-12-29 13:34:24 +01:00
parent a87e014ed6
commit 74d7d097e4
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -1,6 +1,6 @@
/* -*-comment-start: "//";comment-end:""-*- /* -*-comment-start: "//";comment-end:""-*-
* GNU Mes --- Maxwell Equations of Software * GNU Mes --- Maxwell Equations of Software
* Copyright © 2016,2017,2018,2019 Jan (janneke) Nieuwenhuizen <janneke@gnu.org> * Copyright © 2016,2017,2018,2019,2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
* *
* This file is part of GNU Mes. * This file is part of GNU Mes.
* *
@ -27,9 +27,6 @@
// CONSTANT TCGETS 0x5401 // CONSTANT TCGETS 0x5401
#define TCGETS 0x5401 #define TCGETS 0x5401
// CONSTANT NCCS 19
#define NCCS 19
struct ktermios struct ktermios
{ {
unsigned c_iflag; unsigned c_iflag;
@ -37,7 +34,7 @@ struct ktermios
unsigned c_cflag; unsigned c_cflag;
unsigned c_lflag; unsigned c_lflag;
char c_line; char c_line;
char c_cc[NCCS]; char c_cc[19];
unsigned c_ispeed; unsigned c_ispeed;
unsigned c_ospeed; unsigned c_ospeed;
}; };