From: David van Moolenbroek Date: Thu, 8 Mar 2012 21:15:00 +0000 (+0100) Subject: libddekit: resolve compiler warnings X-Git-Tag: v3.2.1~668 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/man.dnssec-keygen.html?a=commitdiff_plain;h=d3950351609b92262d496191dd5828b70d7ad77b;p=minix.git libddekit: resolve compiler warnings Introduced by commit ca95f69. --- diff --git a/lib/libddekit/src/resource.c b/lib/libddekit/src/resource.c index ae7e1232e..8af8ccadb 100644 --- a/lib/libddekit/src/resource.c +++ b/lib/libddekit/src/resource.c @@ -73,7 +73,7 @@ PUBLIC int ddekit_release_mem(ddekit_addr_t start, ddekit_addr_t size) /* ddekit_inb */ /****************************************************************************/ PUBLIC unsigned char ddekit_inb(ddekit_addr_t port) { - unsigned long ret; + u32_t ret; if (sys_inb(port, &ret)) { ddekit_panic("sys_inb failed."); } @@ -85,7 +85,7 @@ PUBLIC unsigned char ddekit_inb(ddekit_addr_t port) { /* ddekit_inw */ /****************************************************************************/ PUBLIC unsigned short ddekit_inw(ddekit_addr_t port) { - unsigned long ret; + u32_t ret; if (sys_inw(port, &ret)) { ddekit_panic("sys_inw failed."); } @@ -97,7 +97,7 @@ PUBLIC unsigned short ddekit_inw(ddekit_addr_t port) { /* ddekit_inl */ /****************************************************************************/ PUBLIC unsigned long ddekit_inl(ddekit_addr_t port){ - unsigned long ret; + u32_t ret; if (sys_inl(port, &ret)) { ddekit_panic("sys_outl failed."); }