diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-01-16 18:54:19 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-01-16 19:29:10 +0100 |
commit | dd3048b2e483f66571cfa1b2ccebb2091b9ad990 (patch) | |
tree | e8cc587d06c15befd9ab7212938bb0e05a029c23 /libmachdev | |
parent | 2e38095efd8cad7fe6feb95dbeb276b7a4287f05 (diff) | |
download | hurd-dd3048b2e483f66571cfa1b2ccebb2091b9ad990.tar.gz hurd-dd3048b2e483f66571cfa1b2ccebb2091b9ad990.tar.bz2 hurd-dd3048b2e483f66571cfa1b2ccebb2091b9ad990.zip |
Make RPC input array parameters const
This follows mig's cf4bcc3f1435 ("Also add const qualifiers on server
side")
Diffstat (limited to 'libmachdev')
-rw-r--r-- | libmachdev/ds_routines.c | 4 | ||||
-rw-r--r-- | libmachdev/machdev-device_emul.h | 4 | ||||
-rw-r--r-- | libmachdev/trivfs_server.c | 2 |
3 files changed, 5 insertions, 5 deletions
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. */ diff --git a/libmachdev/machdev-device_emul.h b/libmachdev/machdev-device_emul.h index 9f7b0b21..5c2396f8 100644 --- a/libmachdev/machdev-device_emul.h +++ b/libmachdev/machdev-device_emul.h @@ -40,13 +40,13 @@ struct machdev_device_emulation_ops void (*dealloc) (void *); mach_port_t (*dev_to_port) (void *); io_return_t (*open) (mach_port_t, mach_msg_type_name_t, - dev_mode_t, char *, device_t *, + dev_mode_t, const char *, device_t *, mach_msg_type_name_t *type); io_return_t (*close) (void *); io_return_t (*write) (void *, mach_port_t, mach_msg_type_name_t, dev_mode_t, recnum_t, io_buf_ptr_t, unsigned, int *); io_return_t (*write_inband) (void *, mach_port_t, mach_msg_type_name_t, - dev_mode_t, recnum_t, io_buf_ptr_inband_t, + dev_mode_t, recnum_t, const char *, unsigned, int *); io_return_t (*read) (void *, mach_port_t, mach_msg_type_name_t, dev_mode_t, recnum_t, int, io_buf_ptr_t *, unsigned *); diff --git a/libmachdev/trivfs_server.c b/libmachdev/trivfs_server.c index 029a8da7..14367157 100644 --- a/libmachdev/trivfs_server.c +++ b/libmachdev/trivfs_server.c @@ -181,7 +181,7 @@ trivfs_append_args (struct trivfs_control *fsys, char **argz, size_t *argz_len) kern_return_t S_i386_set_ldt (mach_port_t target_thread, int first_selector, - descriptor_list_t desc_list, + const_descriptor_list_t desc_list, mach_msg_type_number_t desc_listCnt, boolean_t desc_listSCopy) { |