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

Type consistency tweaks

Better type consistency when returning enums flowcntrl_e and
parity_e. See also PR #92.
This commit is contained in:
Nick Patavalis
2018-02-10 10:04:14 +02:00
parent 6d8bf34e9f
commit a412f6583a
3 changed files with 17 additions and 11 deletions

4
term.c
View File

@ -942,7 +942,7 @@ term_get_parity (int fd)
i = term_find(fd);
if ( i < 0 ) {
parity = -1;
parity = P_ERROR;
break;
}
@ -1155,7 +1155,7 @@ term_get_flowcntrl (int fd)
i = term_find(fd);
if ( i < 0 ) {
flow = -1;
flow = FC_ERROR;
break;
}