]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfsprogs: xfs_fsr: Interpret arguments of qsort's compare function correctly
authorChandan Babu R <chandanrlinux@gmail.com>
Fri, 12 Feb 2021 22:23:05 +0000 (17:23 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Fri, 12 Feb 2021 22:23:05 +0000 (17:23 -0500)
commit8e0c07613abc082ac3ec3363dae8aa71a4bed3e3
tree7739cfa29f6d63d5c776aa1dfb9ab020a5ea8441
parent2c40c5a72b3cd0c4599bc84a7a8b09a496d46db3
xfsprogs: xfs_fsr: Interpret arguments of qsort's compare function correctly

The first argument passed to qsort() in fsrfs() is an array of "struct
xfs_bulkstat". Hence the two arguments to the cmp() function must be
interpreted as being of type "struct xfs_bulkstat *" as against "struct
xfs_bstat *" that is being used to currently typecast them.

Signed-off-by: Chandan Babu R <chandanrlinux@gmail.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
fsr/xfs_fsr.c