comparison libvo/vo_s3fb.c @ 18878:3bf0d70b4c7f

rm unnecesary casts from void* - part 2
author reynaldo
date Sun, 02 Jul 2006 03:59:36 +0000
parents 9a3d768cb8da
children d8b1ae2c164a
comparison
equal deleted inserted replaced
18877:45befbaf1912 18878:3bf0d70b4c7f
103 int fd; 103 int fd;
104 104
105 if (v) 105 if (v)
106 return 1; 106 return 1;
107 errno = 0; 107 errno = 0;
108 v = (vga_t *)malloc(sizeof(vga_t)); 108 v = malloc(sizeof(vga_t));
109 if (v) { 109 if (v) {
110 if (ioperm(0x3d4, 2, 1) == 0) { 110 if (ioperm(0x3d4, 2, 1) == 0) {
111 fd = open("/dev/mem", O_RDWR); 111 fd = open("/dev/mem", O_RDWR);
112 if (fd != -1) { 112 if (fd != -1) {
113 v->mmio = mmap(0, S3_NEWMMIO_REGSIZE, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 113 v->mmio = mmap(0, S3_NEWMMIO_REGSIZE, PROT_READ|PROT_WRITE, MAP_SHARED, fd,