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 **".
This commit is contained in:
Alfred Perlstein 2002-06-01 16:20:27 +00:00
parent 29233a2d8a
commit 78b226dc81

View File

@ -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