ofw_console.c (67227) | ofw_console.c (91113) |
---|---|
1/* $FreeBSD: head/sys/boot/ofw/libofw/ofw_console.c 67227 2000-10-16 19:58:32Z obrien $ | 1/* $FreeBSD: head/sys/boot/ofw/libofw/ofw_console.c 91113 2002-02-23 04:33:15Z jake $ |
2/* $NetBSD: prom.c,v 1.3 1997/09/06 14:03:58 drochner Exp $ */ 3 4/* 5 * Mach Operating System 6 * Copyright (c) 1992 Carnegie Mellon University 7 * All Rights Reserved. 8 * 9 * Permission to use, copy, modify and distribute this software and its --- 100 unchanged lines hidden (view full) --- 110ofw_cons_poll() 111{ 112 unsigned char ch; 113 int l; 114 115 if (saved_char != -1) 116 return 1; 117 | 2/* $NetBSD: prom.c,v 1.3 1997/09/06 14:03:58 drochner Exp $ */ 3 4/* 5 * Mach Operating System 6 * Copyright (c) 1992 Carnegie Mellon University 7 * All Rights Reserved. 8 * 9 * Permission to use, copy, modify and distribute this software and its --- 100 unchanged lines hidden (view full) --- 110ofw_cons_poll() 111{ 112 unsigned char ch; 113 int l; 114 115 if (saved_char != -1) 116 return 1; 117 |
118 if (OF_read(stdin, &ch, 1) != 0) { | 118 if (OF_read(stdin, &ch, 1) > 0) { |
119 saved_char = ch; 120 return 1; 121 } 122 123 return 0; 124} | 119 saved_char = ch; 120 return 1; 121 } 122 123 return 0; 124} |