]> Zhao Yanbai Git Server - minix.git/commitdiff
libddekit: resolve compiler warnings
authorDavid van Moolenbroek <david@minix3.org>
Thu, 8 Mar 2012 21:15:00 +0000 (22:15 +0100)
committerDavid van Moolenbroek <david@minix3.org>
Thu, 8 Mar 2012 22:52:28 +0000 (23:52 +0100)
Introduced by commit ca95f69.

lib/libddekit/src/resource.c

index ae7e1232e257decc6fd9a2eb23d71107b3630fd3..8af8ccadbb72b302d7d5f407327a3d0d15b29b8d 100644 (file)
@@ -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.");
        }