]> Zhao Yanbai Git Server - minix.git/commitdiff
Compiler warning fix
authorBen Gras <ben@minix3.org>
Fri, 24 Mar 2006 23:09:04 +0000 (23:09 +0000)
committerBen Gras <ben@minix3.org>
Fri, 24 Mar 2006 23:09:04 +0000 (23:09 +0000)
drivers/sb16/sb16.c

index 3257fa97600f41d4f32e66739e962e149e0f8b91..11f5f6f427cf0f49fa412a57c6d6c3efc8855fe0 100644 (file)
@@ -23,7 +23,8 @@ int data;
 PUBLIC int sb16_inb(port)
 int port;
 {      
-       int s, value = -1;
+       int s;
+       unsigned long value;
 
        if ((s=sys_inb(port, &value)) != OK)
                panic("SB16DSP","sys_inb() failed", s);
@@ -43,4 +44,4 @@ int value;
        
        if ((s=sys_outb(port, value)) != OK)
                panic("SB16DSP","sys_outb() failed", s);
-}
\ No newline at end of file
+}