summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarian Csontos <mcsontos@redhat.com>2019-10-21 16:31:53 +0200
committerMarian Csontos <mcsontos@redhat.com>2019-10-22 10:37:40 +0200
commitc65f3fd8dfaae6efd8529a846c6f2a9f604c440d (patch)
treeff906f7dffcbbd97386a3d6a10be187aef6ca443
parentc24fa7b7b714871950e0366ca4c35d0e601786ff (diff)
downloadlvm2-c65f3fd8dfaae6efd8529a846c6f2a9f604c440d.tar.gz
dm: Fix compilation of dmsetup
Fix: 889c88e9dab33195efc4dc0400a4b0aaa3383948
-rw-r--r--libdm/libdevmapper.h2
-rw-r--r--tools/dmsetup.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libdm/libdevmapper.h b/libdm/libdevmapper.h
index 81c67dcf2..18fe9f9fd 100644
--- a/libdm/libdevmapper.h
+++ b/libdm/libdevmapper.h
@@ -123,7 +123,7 @@ enum {
DM_DEVICE_ARM_POLL,
- DM_GET_TARGET_VERSION
+ DM_DEVICE_GET_TARGET_VERSION
};
/*
diff --git a/tools/dmsetup.c b/tools/dmsetup.c
index dfa9e341a..b5419ca97 100644
--- a/tools/dmsetup.c
+++ b/tools/dmsetup.c
@@ -2595,7 +2595,7 @@ static int _target_version(CMD_ARGS)
struct dm_task *dmt;
struct dm_versions *target;
- if (!(dmt = dm_task_create(DM_GET_TARGET_VERSION)))
+ if (!(dmt = dm_task_create(DM_DEVICE_GET_TARGET_VERSION)))
return_0;
if (!dm_task_set_name(dmt, argv[0]))