diff options
author | Karel Zak | 2018-07-23 11:39:13 +0200 |
---|---|---|
committer | Karel Zak | 2018-07-23 11:39:13 +0200 |
commit | ec4b88b83da25d44bcfa4f4de72cb1b0642ccf6d (patch) | |
tree | 16e0a2bb970510ff7a4fec9914905ec8005d94bf /libfdisk/src/dos.c | |
parent | libmount: fix compiler warning [-Wcast-qual] (diff) | |
download | kernel-qcow2-util-linux-ec4b88b83da25d44bcfa4f4de72cb1b0642ccf6d.tar.gz kernel-qcow2-util-linux-ec4b88b83da25d44bcfa4f4de72cb1b0642ccf6d.tar.xz kernel-qcow2-util-linux-ec4b88b83da25d44bcfa4f4de72cb1b0642ccf6d.zip |
libfdisk: fix compiler warnings [-Wcast-qual]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libfdisk/src/dos.c')
-rw-r--r-- | libfdisk/src/dos.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libfdisk/src/dos.c b/libfdisk/src/dos.c index 41784053c..f73516460 100644 --- a/libfdisk/src/dos.c +++ b/libfdisk/src/dos.c @@ -2153,8 +2153,8 @@ static void print_chain_of_logicals(struct fdisk_context *cxt) static int cmp_ebr_offsets(const void *a, const void *b) { - struct pte *ae = (struct pte *) a, - *be = (struct pte *) b; + const struct pte *ae = (const struct pte *) a, + *be = (const struct pte *) b; if (ae->offset == 0 && be->offset == 0) return 0; |