X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=kub.c;h=2ded5902b7e09301c01cb3334b066949116e4ca1;hb=4055bbb5a7882b70c5b83ca1f6f0a76161f8260b;hp=f7f2fe3edf9e7c1818b8af5233f48a8749a19946;hpb=9d22807ce8683a9b45b8f6ac71728492e6e76c9a;p=kub 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; }