From: Pekka Enberg Date: Wed, 6 Apr 2011 18:09:14 +0000 (+0300) Subject: kvm tools: Use STDIN_FILENO instead of fileno(stdin) X-Git-Tag: next-20110824~3^2~488 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7f5e12352198252c84beb07980a94531f24f5a88;p=karo-tx-linux.git 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: Pekka Enberg --- diff --git a/tools/kvm/8250-serial.c b/tools/kvm/8250-serial.c index 232f6e86eb8c..f0aa69e132c7 100644 --- a/tools/kvm/8250-serial.c +++ b/tools/kvm/8250-serial.c @@ -80,10 +80,10 @@ static void serial8250__receive(struct kvm *self, struct serial8250_device *dev) if (dev->lsr & UART_LSR_DR) return; - if (!is_readable(fileno(stdin))) + if (!is_readable(STDIN_FILENO)) return; - c = read_char(fileno(stdin)); + c = read_char(STDIN_FILENO); if (c < 0) return;