1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Make lv_rename's interface "const correct".

* lib/metadata/lv_manip.c (lv_rename): Make char* param "const".
* lib/metadata/metadata-exported.h: Update prototype, too.
This commit is contained in:
Jim Meyering 2007-08-06 09:04:21 +00:00
parent 27c7135097
commit b7449ebc37
2 changed files with 2 additions and 2 deletions

View File

@ -1466,7 +1466,7 @@ int lv_extend(struct logical_volume *lv,
* Returns 0 on failure, 1 on success.
*/
int lv_rename(struct cmd_context *cmd, struct logical_volume *lv,
char *newname)
const char *newname)
{
struct volume_group *vg = lv->vg;

View File

@ -357,7 +357,7 @@ int lv_extend(struct logical_volume *lv,
int lv_remove(struct logical_volume *lv);
int lv_rename(struct cmd_context *cmd, struct logical_volume *lv,
char *newname);
const char *newname);
/* Find a PV within a given VG */
struct pv_list *find_pv_in_vg(struct volume_group *vg, const char *pv_name);