Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > d1ba75dd6acda59fe30fd6769a94cb56 > files > 1

apmud-1.0.0-11.fc12.src.rpm

--- apmud/contrib/m3mirror.c~	2006-09-11 07:52:55.000000000 +0100
+++ apmud/contrib/m3mirror.c	2006-09-11 07:58:27.000000000 +0100
@@ -5,16 +5,15 @@
 #include <string.h>
 #include <unistd.h>
 #include <sys/ioctl.h>
+#include <stdint.h>
 
 #define ATY_MIRROR_LCD_ON	0x00000001
 #define ATY_MIRROR_CRT_ON	0x00000002
 
-#define __u32 unsigned int
-
 /* out param: u32*	backlight value: 0 to 15 */
-#define FBIO_ATY128_GET_MIRROR	_IOR('@', 1, sizeof(__u32*))
+#define FBIO_ATY128_GET_MIRROR	_IOR('@', 1, uint32_t)
 /* in param: u32*	backlight value: 0 to 15 */
-#define FBIO_ATY128_SET_MIRROR	_IOW('@', 2, sizeof(__u32*))
+#define FBIO_ATY128_SET_MIRROR	_IOW('@', 2, uint32_t)
 
 static void
 usage(void)
--- apmud/contrib/m6mirror.c~	2006-09-11 07:52:55.000000000 +0100
+++ apmud/contrib/m6mirror.c	2006-09-11 07:59:39.000000000 +0100
@@ -5,14 +5,13 @@
 #include <unistd.h>
 #include <errno.h>
 #include <sys/ioctl.h>
+#include <stdint.h>
 
 #define ATY_RADEON_LCD_ON       0x00000001
 #define ATY_RADEON_CRT_ON       0x00000002
 
-#define __u32 unsigned int
-
-#define FBIO_RADEON_GET_MIRROR  _IOR('@', 3, sizeof(__u32*))
-#define FBIO_RADEON_SET_MIRROR  _IOW('@', 4, sizeof(__u32*))
+#define FBIO_RADEON_GET_MIRROR  _IOR('@', 3, uint32_t)
+#define FBIO_RADEON_SET_MIRROR  _IOW('@', 4, uint32_t)
 
 
 static void