diff options
author | Jim Meyering <jim@meyering.net> | 2007-03-07 18:17:00 +0100 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-03-07 18:17:00 +0100 |
commit | cb77063c26281dae2dbce6079819c4aad4e15b15 (patch) | |
tree | 461ede82b075712b64a71d5f908139d9ccacd234 /include | |
parent | b906fb597e84c5ff7ca3c54343b6c2de216d2471 (diff) | |
download | parted-cb77063c26281dae2dbce6079819c4aad4e15b15.tar.gz |
Add "const" to parameters in these public interfaces.
* libparted/disk.c (ped_disk_check):
(ped_disk_get_primary_partition_count):
(ped_disk_get_last_partition_num, ped_partition_print):
(ped_disk_print):
(ped_partition_print): Also declare to be "static".
This is ok, since the function is referenced only from this file.
* include/parted/disk.h: Update their prototypes.
Diffstat (limited to 'include')
-rw-r--r-- | include/parted/disk.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/parted/disk.h b/include/parted/disk.h index 06ecfbb..6771809 100644 --- a/include/parted/disk.h +++ b/include/parted/disk.h @@ -257,11 +257,11 @@ extern void ped_disk_destroy (PedDisk* disk); extern int ped_disk_commit (PedDisk* disk); extern int ped_disk_commit_to_dev (PedDisk* disk); extern int ped_disk_commit_to_os (PedDisk* disk); -extern int ped_disk_check (PedDisk* disk); -extern void ped_disk_print (PedDisk* disk); +extern int ped_disk_check (const PedDisk* disk); +extern void ped_disk_print (const PedDisk* disk); -extern int ped_disk_get_primary_partition_count (PedDisk* disk); -extern int ped_disk_get_last_partition_num (PedDisk* disk); +extern int ped_disk_get_primary_partition_count (const PedDisk* disk); +extern int ped_disk_get_last_partition_num (const PedDisk* disk); extern int ped_disk_get_max_primary_partition_count (const PedDisk* disk); /** @} */ |