From 4055bbb5a7882b70c5b83ca1f6f0a76161f8260b Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Tue, 20 Feb 2007 06:15:45 -0800 Subject: [PATCH] Fix signature of card_compare to make qsort happy It really wants to see 'const void *' arguments. --- kub.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kub.c b/kub.c index f7f2fe3..2ded590 100644 --- a/kub.c +++ b/kub.c @@ -84,8 +84,10 @@ static void player_init(player_t *player) /* If card_one < card_two, then return value will be negative if they are equal, 0 will be returned, if card_one > card_two, then return value will be positive */ -static int card_compare(card_t *card_one, card_t *card_two) +static int card_compare(const void *one, const void *two) { + const card_t *card_one = one; + const card_t *card_two = two; return card_one->number - card_two->number; } -- 2.43.0