/* WARNING: not portable */
-int comedi_map(comedi_t *d, unsigned int subdevice, void **ptr)
+int comedi_map(comedi_t *d, unsigned int subdevice, void *ptr)
{
comedi_device *dev = (comedi_device *)d;
comedi_subdevice *s = dev->subdevices + subdevice;
if(!s->async)
return -EINVAL;
- if(ptr)*ptr=s->async->prealloc_buf;
+ if(ptr)
+ {
+ *((void **) ptr) = s->async->prealloc_buf;
+ }
/* XXX no reference counting */
subdevice);
int comedi_set_user_int_count(comedi_t *dev,unsigned int subdevice,
unsigned int buf_user_count);
-int comedi_map(comedi_t *dev, unsigned int subdev, void **ptr);
+int comedi_map(comedi_t *dev, unsigned int subdev, void *ptr);
int comedi_unmap(comedi_t *dev, unsigned int subdev);