Return the correct value from comparing the operands. Signed-off-by: Andreas Schwab <schwab@xxxxxxxxxxxxxx> --- mount/lomount.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/mount/lomount.c b/mount/lomount.c index 34d151a..fad58d5 100644 --- a/mount/lomount.c +++ b/mount/lomount.c @@ -285,7 +285,7 @@ name2minor(int hasprefix, const char *name) static int cmpnum(const void *p1, const void *p2) { - return (* (int *) p1) > (* (int *) p2); + return (*(int *) p1 > *(int *) p2) - (*(int *) p1 < *(int *) p2); } /* -- 1.7.6 -- Andreas Schwab, schwab@xxxxxxxxxxxxxx GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html