# HG changeset patch # User reimar # Date 1278017375 0 # Node ID 683818e5430da6f55a1e36e92271a61a7d5ae2b3 # Parent 0ccd18ec15c382de03d097bfa449c485ca7d5c47 Avoid void *-arithmentic warnings. diff -r 0ccd18ec15c3 -r 683818e5430d libaf/af_export.c --- 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);