Make static struct const in serbb_posix.c

This commit is contained in:
Stefan Rueger
2024-05-10 14:10:37 +01:00
parent 2c8c0a79a1
commit b4ed989c99

View File

@@ -62,11 +62,11 @@ static struct termios oldmode;
#define DB9PINS 9
static int serregbits[DB9PINS + 1] =
static const int serregbits[DB9PINS + 1] =
{ 0, TIOCM_CD, 0, 0, TIOCM_DTR, 0, TIOCM_DSR, TIOCM_RTS, TIOCM_CTS, TIOCM_RI };
#ifdef DEBUG
static char *serpins[DB9PINS + 1] =
static const char *serpins[DB9PINS + 1] =
{ "NONE", "CD", "RXD", "TXD", "DTR", "GND", "DSR", "RTS", "CTS", "RI" };
#endif