summaryrefslogtreecommitdiff
path: root/eth-multiplexer/device_impl.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-09-23 22:36:18 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-09-23 22:36:18 +0000
commit6da66c7aea1019ee63d9fc19bc8b73fa7c676da0 (patch)
treef5c29b54063e26896294322cb6fafac2d1f32439 /eth-multiplexer/device_impl.c
parentebb437fb4b27fa565b9aebb05cda1e9db4ec17ff (diff)
New upstream snapshot
Diffstat (limited to 'eth-multiplexer/device_impl.c')
-rw-r--r--eth-multiplexer/device_impl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eth-multiplexer/device_impl.c b/eth-multiplexer/device_impl.c
index 953fca70..459d9c4c 100644
--- a/eth-multiplexer/device_impl.c
+++ b/eth-multiplexer/device_impl.c
@@ -156,7 +156,7 @@ ds_device_write (device_t device, mach_port_t reply_port,
vdev_portclass);
if (vdev == NULL)
{
- vm_deallocate (mach_task_self (), data, datalen);
+ vm_deallocate (mach_task_self (), (vm_address_t) data, datalen);
return D_NO_SUCH_DEVICE;
}
/* The packet is forwarded to all virtual interfaces and
@@ -168,7 +168,7 @@ ds_device_write (device_t device, mach_port_t reply_port,
data, datalen, bytes_written);
/* The data in device_write() is transmifered out of line,
* so the server-side function has to deallocate it. */
- vm_deallocate (mach_task_self (), data, datalen);
+ vm_deallocate (mach_task_self (), (vm_address_t) data, datalen);
ports_port_deref (vdev);
return ret;
}