From b1709507f7e1bb5c1912fe422f0bbfa5061309bd Mon Sep 17 00:00:00 2001 From: jmg Date: Wed, 12 Nov 1997 08:48:13 +0000 Subject: fix return type so that it returns both bytes (instead of just first) Found-by: conrads@neosoft.com Fix-by: Luigi --- contrib/pnpinfo/pnpinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'contrib/pnpinfo/pnpinfo.c') diff --git a/contrib/pnpinfo/pnpinfo.c b/contrib/pnpinfo/pnpinfo.c index 6a804fd..0e811f2 100644 --- a/contrib/pnpinfo/pnpinfo.c +++ b/contrib/pnpinfo/pnpinfo.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: pnpinfo.c,v 1.16 1996/05/05 23:56:38 smpatel Exp $ + * $Id: pnpinfo.c,v 1.1.1.1 1997/09/19 15:36:00 jmg Exp $ */ #include @@ -61,7 +61,7 @@ pnp_read(int d) return inb( (rd_port << 2) + 3) & 0xff; } -u_char +u_short pnp_readw(int d) { int c = pnp_read(d) << 8 ; -- cgit v1.1