diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-01-17 00:32:29 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-01-17 00:43:09 +0100 |
commit | f5fb7c713ea443469406a691e60a6f4567a4cb75 (patch) | |
tree | b16d979915b5ad7e32ffe77ca5f5006dc639a16e /mach-defpager | |
parent | dd3048b2e483f66571cfa1b2ccebb2091b9ad990 (diff) | |
download | hurd-f5fb7c713ea443469406a691e60a6f4567a4cb75.tar.gz hurd-f5fb7c713ea443469406a691e60a6f4567a4cb75.tar.bz2 hurd-f5fb7c713ea443469406a691e60a6f4567a4cb75.zip |
Fix const warnings
Now that the RPCs have const, this forces us cleaning our const-meant
functions.
Diffstat (limited to 'mach-defpager')
-rw-r--r-- | mach-defpager/default_pager.c | 2 | ||||
-rw-r--r-- | mach-defpager/default_pager.h | 6 | ||||
-rw-r--r-- | mach-defpager/setup.c | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/mach-defpager/default_pager.c b/mach-defpager/default_pager.c index 4afe9a76..fd3a7b22 100644 --- a/mach-defpager/default_pager.c +++ b/mach-defpager/default_pager.c @@ -1833,7 +1833,7 @@ void pager_port_list_delete(ds) */ kern_return_t destroy_paging_partition(name, pp_private) - char *name; + const char *name; void **pp_private; { unsigned int id = part_id(name); diff --git a/mach-defpager/default_pager.h b/mach-defpager/default_pager.h index 3f872cc8..9de3b551 100644 --- a/mach-defpager/default_pager.h +++ b/mach-defpager/default_pager.h @@ -28,11 +28,11 @@ void partition_init(); void create_paging_partition(const char *name, struct file_direct *fdp, int isa_file, int linux_signature); -kern_return_t destroy_paging_partition(char *name, void **pp_private); +kern_return_t destroy_paging_partition(const char *name, void **pp_private); kern_return_t add_paging_file(mach_port_t master_device_port, - char *file_name, int linux_signature); -kern_return_t remove_paging_file (char *file_name); + const char *file_name, int linux_signature); +kern_return_t remove_paging_file (const char *file_name); void paging_space_info(vm_size_t *totp, vm_size_t *freep); void no_paging_space(boolean_t out_of_memory); diff --git a/mach-defpager/setup.c b/mach-defpager/setup.c index ffd75c20..a1e7fe4e 100644 --- a/mach-defpager/setup.c +++ b/mach-defpager/setup.c @@ -242,14 +242,14 @@ page_write_file_direct(struct file_direct *fdp, kern_return_t add_paging_file(master_device_port, file_name, linux_signature) mach_port_t master_device_port; - char *file_name; + const char *file_name; int linux_signature; { error_t err; mach_port_t dev; int sizes[DEV_GET_SIZE_COUNT]; natural_t count; - char *devname = file_name; + const char *devname = file_name; assert_backtrace (linux_signature == 0); @@ -292,7 +292,7 @@ add_paging_file(master_device_port, file_name, linux_signature) * Destroy a paging_partition given a file name */ kern_return_t -remove_paging_file (char *file_name) +remove_paging_file (const char *file_name) { struct file_direct *fdp = 0; kern_return_t kr; |