From f5fb7c713ea443469406a691e60a6f4567a4cb75 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 17 Jan 2022 00:32:29 +0100 Subject: Fix const warnings Now that the RPCs have const, this forces us cleaning our const-meant functions. --- boot/boot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'boot/boot.c') diff --git a/boot/boot.c b/boot/boot.c index d45d8bb9..1b10c86b 100644 --- a/boot/boot.c +++ b/boot/boot.c @@ -342,7 +342,7 @@ add_dev_map (const char *dev_name, const char *dev_file) return map; } -static struct dev_map *lookup_dev (char *dev_name) +static struct dev_map *lookup_dev (const char *dev_name) { struct dev_map *map; @@ -1057,7 +1057,7 @@ ds_device_write_inband (device_t device, mach_msg_type_name_t reply_type, dev_mode_t mode, recnum_t recnum, - const_io_buf_ptr_inband_t data, + const io_buf_ptr_inband_t data, size_t datalen, int *bytes_written) { -- cgit v1.2.3