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:
parent
29233a2d8a
commit
78b226dc81
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user