Fix parameter types on Linux.

This commit is contained in:
mmdolze
2011-01-25 19:25:53 +00:00
parent 004c5d7869
commit d2d466cf8a
+2 -2
View File
@@ -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);
}