]> granicus.if.org Git - musl/commitdiff
further fixes for mips ioctl.h header
authorRich Felker <dalias@aerifal.cx>
Tue, 7 Aug 2012 23:59:28 +0000 (19:59 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 7 Aug 2012 23:59:28 +0000 (19:59 -0400)
untested; hopefully it's right now

arch/mips/bits/ioctl.h

index 3d60c1a981aab22f38ff2b40e626b67caf1c386d..5040226c2c4c55968d9d14320f9256469b7b9d55 100644 (file)
@@ -3,10 +3,10 @@
 #define _IOC_READ  2U
 #define _IOC_WRITE 4U
 
-#define _IO(a,b) _IOC(_IOC_NONE,(a),(b),0)
-#define _IOW(a,b,c) _IOC(1,(a),(b),sizeof(c))
-#define _IOR(a,b,c) _IOC(2,(a),(b),sizeof(c))
-#define _IOWR(a,b,c) _IOC(4,(a),(b),sizeof(c))
+#define _IO(a,b) _IOC(1U,(a),(b),0)
+#define _IOW(a,b,c) _IOC(4U,(a),(b),sizeof(c))
+#define _IOR(a,b,c) _IOC(2U,(a),(b),sizeof(c))
+#define _IOWR(a,b,c) _IOC(6U,(a),(b),sizeof(c))
 
 #define TCGETA         0x5401
 #define TCSETA         0x5402