From dd3048b2e483f66571cfa1b2ccebb2091b9ad990 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 16 Jan 2022 18:54:19 +0100 Subject: Make RPC input array parameters const This follows mig's cf4bcc3f1435 ("Also add const qualifiers on server side") --- libmachdev/ds_routines.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmachdev/ds_routines.c') diff --git a/libmachdev/ds_routines.c b/libmachdev/ds_routines.c index b12d1ff3..1ef865db 100644 --- a/libmachdev/ds_routines.c +++ b/libmachdev/ds_routines.c @@ -90,7 +90,7 @@ static int num_emul = 0; io_return_t ds_device_open (mach_port_t open_port, mach_port_t reply_port, mach_msg_type_name_t reply_port_type, dev_mode_t mode, - dev_name_t name, device_t *devp, + const_dev_name_t name, device_t *devp, mach_msg_type_name_t *devicePoly) { int i; @@ -161,7 +161,7 @@ io_return_t ds_device_write_inband (struct mach_device *device, mach_port_t reply_port, mach_msg_type_name_t reply_port_type, dev_mode_t mode, recnum_t recnum, - io_buf_ptr_inband_t data, unsigned count, + const_io_buf_ptr_inband_t data, unsigned count, int *bytes_written) { /* Refuse if device is dead or not completely open. */ -- cgit v1.2.3