mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue