1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Add a const.

This commit is contained in:
Alasdair Kergon 2004-08-11 13:15:35 +00:00
parent a303dcde2a
commit 1c31f23f56
2 changed files with 2 additions and 2 deletions

View File

@ -212,7 +212,7 @@ static int _aligned_io(struct device_area *where, void *buffer,
* Public functions
*---------------------------------------------------------------*/
int dev_get_size(struct device *dev, uint64_t *size)
int dev_get_size(const struct device *dev, uint64_t *size)
{
int fd;
const char *name = dev_name(dev);

View File

@ -55,7 +55,7 @@ struct device_area {
/*
* All io should use these routines.
*/
int dev_get_size(struct device *dev, uint64_t *size);
int dev_get_size(const struct device *dev, uint64_t *size);
int dev_get_sectsize(struct device *dev, uint32_t *size);
/* Use quiet version if device number could change e.g. when opening LV */