From d2d466cf8a59ccd0ea5b588f016d8adfa8560d21 Mon Sep 17 00:00:00 2001 From: mmdolze Date: Tue, 25 Jan 2011 19:25:53 +0000 Subject: [PATCH] Fix parameter types on Linux. --- server/drivers/port.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/drivers/port.h b/server/drivers/port.h index fe5bf94..c584cd4 100644 --- a/server/drivers/port.h +++ b/server/drivers/port.h @@ -145,7 +145,7 @@ static inline int port_deny (unsigned short port) { } /* Get access to multiple ports at once */ -static inline int port_access_multiple (unsigned short port, int count) { +static inline int port_access_multiple (unsigned short port, unsigned short count) { if (port+count-1 <= 0x3FF) { return ioperm(port, count, 255); } @@ -161,7 +161,7 @@ static inline int port_access_multiple (unsigned short port, int count) { } /* Close access to multiple ports at once */ -static inline int port_deny_multiple (unsigned short port, int count) { +static inline int port_deny_multiple (unsigned short port, unsigned short count) { if (port+count-1 <= 0x3FF) { return ioperm(port, count, 0); }