lib/loopdev: fix compiler warning [-Wcast-qual]

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2018-07-23 11:17:28 +02:00
parent 78c66fc61d
commit 0145c00a12
1 changed files with 2 additions and 2 deletions

View File

@ -402,8 +402,8 @@ static int loopiter_set_device(struct loopdev_cxt *lc, const char *device)
static int cmpnum(const void *p1, const void *p2)
{
return (((* (int *) p1) > (* (int *) p2)) -
((* (int *) p1) < (* (int *) p2)));
return (((* (const int *) p1) > (* (const int *) p2)) -
((* (const int *) p1) < (* (const int *) p2)));
}
/*