mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Use proper types in kbdmux_kbd_getc():
- The return value should be a signed integer, because -1 means failure. - The c variable should be unsigned, to force it to be zero-extended when returned. Reported by: Andreas Tobler <andreast-list fgznet ch>
This commit is contained in:
parent
230bb4d90d
commit
417635733e
1 changed files with 2 additions and 2 deletions
|
|
@ -181,10 +181,10 @@ kbdmux_kbd_putc(kbdmux_state_t *state, char c)
|
|||
state->ks_inq_length++;
|
||||
}
|
||||
|
||||
static char
|
||||
static int
|
||||
kbdmux_kbd_getc(kbdmux_state_t *state)
|
||||
{
|
||||
char c;
|
||||
unsigned char c;
|
||||
|
||||
if (state->ks_inq_length == 0)
|
||||
return (-1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue