summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKarel Zak2018-07-23 11:17:28 +0200
committerKarel Zak2018-07-23 11:17:28 +0200
commit0145c00a12a32cdccb9b100da8a900335109c86b (patch)
tree128d09141bef61eee7d41c5ffc9994155ac1e840 /lib
parentlib/mangle: const quialifier cleanup (diff)
downloadkernel-qcow2-util-linux-0145c00a12a32cdccb9b100da8a900335109c86b.tar.gz
kernel-qcow2-util-linux-0145c00a12a32cdccb9b100da8a900335109c86b.tar.xz
kernel-qcow2-util-linux-0145c00a12a32cdccb9b100da8a900335109c86b.zip
lib/loopdev: fix compiler warning [-Wcast-qual]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/loopdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/loopdev.c b/lib/loopdev.c
index cab05af94..de0d50ba2 100644
--- a/lib/loopdev.c
+++ b/lib/loopdev.c
@@ -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)));
}
/*