summaryrefslogtreecommitdiffstats
path: root/libdm/libdm-report.c
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2011-02-18 14:38:47 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2011-02-18 14:38:47 +0000
commit2f321615f22a9fef2eaa0258d62c49212f52a8b0 (patch)
tree4ad5e1e642dba2482704c292a92af012dd113773 /libdm/libdm-report.c
parent4ebc6404ee5453a5ade850e086befe5e10ec7242 (diff)
downloadlvm2-2f321615f22a9fef2eaa0258d62c49212f52a8b0.tar.gz
lvm2-2f321615f22a9fef2eaa0258d62c49212f52a8b0.tar.xz
lvm2-2f321615f22a9fef2eaa0258d62c49212f52a8b0.zip
API change - support more const arg
As dm_report_field_string() doesn't modify content of data pointer, it can be marked as const. It's slight API change - but doesn't require any change on the user side and supports wider range of arguments without const casting. (i.e. we may use as paramater const lv struct this way: &lv->name)
Diffstat (limited to 'libdm/libdm-report.c')
-rw-r--r--libdm/libdm-report.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdm/libdm-report.c b/libdm/libdm-report.c
index 4f47c46e..02122841 100644
--- a/libdm/libdm-report.c
+++ b/libdm/libdm-report.c
@@ -102,7 +102,7 @@ static const struct dm_report_object_type *_find_type(struct dm_report *rh,
*/
int dm_report_field_string(struct dm_report *rh,
- struct dm_report_field *field, const char **data)
+ struct dm_report_field *field, const char *const *data)
{
char *repstr;