[dm-devel] [PATCH 27/39] kpartx: do not use 'const' for mapname in get_hotplug_device()

Hannes Reinecke hare at suse.de
Thu Jun 16 09:47:33 UTC 2016


Signed-off-by: Hannes Reinecke <hare at suse.com>
---
 kpartx/kpartx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kpartx/kpartx.c b/kpartx/kpartx.c
index e1ebc96..4de13fa 100644
--- a/kpartx/kpartx.c
+++ b/kpartx/kpartx.c
@@ -150,7 +150,7 @@ static char *
 get_hotplug_device(void)
 {
 	unsigned int major, minor, off, len;
-	const char *mapname;
+	char *mapname;
 	char *devname = NULL;
 	char *device = NULL;
 	char *var = NULL;
-- 
2.6.6




More information about the dm-devel mailing list