diff libaf/af_export.c @ 31542:683818e5430d

Avoid void *-arithmentic warnings.
author reimar
date Thu, 01 Jul 2010 20:49:35 +0000
parents 76a13038105e
children 8fa2f43cb760
line wrap: on
line diff
--- a/libaf/af_export.c	Thu Jul 01 20:43:20 2010 +0000
+++ b/libaf/af_export.c	Thu Jul 01 20:49:35 2010 +0000
@@ -55,7 +55,7 @@
   int 	wi;  		// Write index
   int	fd;           	// File descriptor to shared memory area
   char* filename;      	// File to export data
-  void* mmap_area;     	// MMap shared area
+  uint8_t *mmap_area;  	// MMap shared area
 } af_export_t;
 
 
@@ -98,7 +98,7 @@
     if(NULL == s->buf[0])
       mp_msg(MSGT_AFILTER, MSGL_FATAL, "[export] Out of memory\n");
     for(i = 1; i < af->data->nch; i++)
-      s->buf[i] = s->buf[0] + i*s->sz*af->data->bps;
+      s->buf[i] = (uint8_t *)s->buf[0] + i*s->sz*af->data->bps;
 
     // Init memory mapping
     s->fd = open(s->filename, O_RDWR | O_CREAT | O_TRUNC, 0640);