summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/cardbus/cardbus_cis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/cardbus/cardbus_cis.c b/sys/dev/cardbus/cardbus_cis.c
index ceb409e..2d97b48 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
OpenPOWER on IntegriCloud