diff options
author | alfred <alfred@FreeBSD.org> | 2002-06-01 16:20:27 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-06-01 16:20:27 +0000 |
commit | 4b914e76566fafb3140697ea3b0fb9d379d2ac62 (patch) | |
tree | 621d72ac25e85aedaf84242fa20690cb17b127b8 /sys/dev/cardbus | |
parent | caabda616364f00becc0d2b16d52fe9c749947f4 (diff) | |
download | FreeBSD-src-4b914e76566fafb3140697ea3b0fb9d379d2ac62.zip FreeBSD-src-4b914e76566fafb3140697ea3b0fb9d379d2ac62.tar.gz |
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 **".
Diffstat (limited to 'sys/dev/cardbus')
-rw-r--r-- | sys/dev/cardbus/cardbus_cis.c | 4 |
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 |