lib/loopdev: fix compiler warning [-Wcast-qual]
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
78c66fc61d
commit
0145c00a12
|
@ -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)));
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue