summaryrefslogtreecommitdiff
path: root/libdm/libdm-stats.c
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2017-02-12 18:18:32 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2017-02-13 10:06:18 +0100
commit7cbee8f31ae64c023b294524008885e3a054e394 (patch)
tree887c804cf143b9c464f36199cbfe5e313e9f2ff2 /libdm/libdm-stats.c
parentb6301aa977df675918f25f6ace11628fa846392c (diff)
downloadlvm2-7cbee8f31ae64c023b294524008885e3a054e394.tar.gz
cleanup: use matching const type
Diffstat (limited to 'libdm/libdm-stats.c')
-rw-r--r--libdm/libdm-stats.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libdm/libdm-stats.c b/libdm/libdm-stats.c
index 8589db3de..b74a47099 100644
--- a/libdm/libdm-stats.c
+++ b/libdm/libdm-stats.c
@@ -402,7 +402,7 @@ static int _stats_bound(const struct dm_stats *dms)
if (dms->bind_major > 0 || dms->bind_name || dms->bind_uuid)
return 1;
/* %p format specifier expects a void pointer. */
- log_debug("Stats handle at %p is not bound.", (void *) dms);
+ log_debug("Stats handle at %p is not bound.", dms);
return 0;
}
@@ -3857,9 +3857,9 @@ struct _extent {
*/
static int _extent_start_compare(const void *p1, const void *p2)
{
- struct _extent *r1, *r2;
- r1 = (struct _extent *) p1;
- r2 = (struct _extent *) p2;
+ const struct _extent *r1, *r2;
+ r1 = (const struct _extent *) p1;
+ r2 = (const struct _extent *) p2;
if (r1->start < r2->start)
return -1;