Commit b4068fdf authored by Pekka Enberg's avatar Pekka Enberg Committed by Will Deacon
Browse files

kvm tools: Use STDIN_FILENO instead of fileno(stdin)

To cleanup the serial console emulation code, use STDIN_FILENO which is POSIX
API instead of fileno(stdin) which is libc API.

Signed-off-by: default avatarPekka Enberg <>
parent 97a2dda6
......@@ -80,10 +80,10 @@ static void serial8250__receive(struct kvm *self, struct serial8250_device *dev)
if (dev->lsr & UART_LSR_DR)
if (!is_readable(fileno(stdin)))
if (!is_readable(STDIN_FILENO))
c = read_char(fileno(stdin));
c = read_char(STDIN_FILENO);
if (c < 0)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment