From 78b226dc81cfa6130066cae86f7b51a02eee123d Mon Sep 17 00:00:00 2001 From: Alfred Perlstein Date: Sat, 1 Jun 2002 16:20:27 +0000 Subject: [PATCH] Silence warning. When casting a "const void *" to a "struct foo **" you want to actually cast it to "struct foo * const *" not simply "const struct foo **". --- sys/dev/cardbus/cardbus_cis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/cardbus/cardbus_cis.c b/sys/dev/cardbus/cardbus_cis.c index ceb409ee27b..2d97b4862d6 100644 --- a/sys/dev/cardbus/cardbus_cis.c +++ b/sys/dev/cardbus/cardbus_cis.c @@ -586,8 +586,8 @@ cardbus_parse_cis(device_t cbdev, device_t child, static int barsort(const void *a, const void *b) { - return ((*(const struct resource_list_entry **)b)->count - - (*(const struct resource_list_entry **)a)->count); + return ((*(const struct resource_list_entry * const *)b)->count - + (*(const struct resource_list_entry * const *)a)->count); } static int