SOLARIS: Add multiPage_range* cast

Here, &avc->multiPage is just a struct afs_q*, so comparing it
directly to 'range' results in a compiler warning. Cast it to a struct
multiPage_range* to avoid the warning.

Change-Id: If37e078deadb15c07a1c87c8b5c4785f823f7182
Reviewed-on: https://gerrit.openafs.org/12706
Reviewed-by: Marcio Brito Barbosa <marciobritobarbosa@yahoo.com>
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Tested-by: Andrew Deason <adeason@sinenomine.net>
This commit is contained in:
Andrew Deason 2017-08-09 20:06:41 -05:00
parent 43b5029eee
commit 91482964cb

View File

@ -75,7 +75,7 @@ osi_VM_MultiPageConflict(struct vcache *avc, struct dcache *adc)
{
struct multiPage_range *range;
for (range = (struct multiPage_range *)avc->multiPage.next;
range != &avc->multiPage;
range != (struct multiPage_range *)&avc->multiPage;
range = (struct multiPage_range *)QNext(&range->q)) {
if (adc->f.chunk >= AFS_CHUNK(range->off) &&