From 9b30dfb967f2e80168a426187f09db8cb7d45c61 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 20 Dec 2010 13:40:46 +0000 Subject: [PATCH] Use const char * for name and old_name in vg Switch to use const char pointers to avoid changes of these structure members and having better control over, were these members could be modified. --- lib/metadata/vg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/metadata/vg.h b/lib/metadata/vg.h index eb9debcce..448dcfe4b 100644 --- a/lib/metadata/vg.h +++ b/lib/metadata/vg.h @@ -43,8 +43,8 @@ struct volume_group { uint64_t status; struct id id; - char *name; - char *old_name; /* Set during vgrename and vgcfgrestore */ + const char *name; + const char *old_name; /* Set during vgrename and vgcfgrestore */ char *system_id; uint32_t extent_size;