1
0
mirror of https://github.com/UzixLS/picocom.git synced 2025-07-19 07:21:18 +03:00

More enum type fixes

Try not to use lose enum type information through ints.
This commit is contained in:
David Leonard
2018-02-10 11:51:39 +10:00
parent a412f6583a
commit 8814974ac7
2 changed files with 6 additions and 4 deletions

6
term.c
View File

@ -936,7 +936,8 @@ enum parity_e
term_get_parity (int fd)
{
tcflag_t flg;
int i, parity;
int i;
enum parity_e parity;
do { /* dummy */
@ -1148,7 +1149,8 @@ term_set_flowcntrl (int fd, enum flowcntrl_e flowcntl)
enum flowcntrl_e
term_get_flowcntrl (int fd)
{
int i, flow;
int i;
enum flowcntrl_e flow;
int rtscts, xoff, xon;
do { /* dummy */