1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-08 09:57:55 +03:00

Cleanup const compiler warning

This commit is contained in:
zkabelac 2010-01-14 10:17:12 +00:00
parent 44e17e2aa9
commit c23f56b9cb

View File

@ -852,8 +852,8 @@ static int _for_each_pv(struct cmd_context *cmd, struct logical_volume *lv,
static int _comp_area(const void *l, const void *r)
{
const struct pv_area *lhs = *((const struct pv_area **) l);
const struct pv_area *rhs = *((const struct pv_area **) r);
const struct pv_area *lhs = *((const struct pv_area * const *) l);
const struct pv_area *rhs = *((const struct pv_area * const *) r);
if (lhs->count < rhs->count)
return 1;