Don't cast away const
Follow up to 511fce6b
which missed a cast.
Reviewed-by: Matt Ahrens <matt@delphix.com>
Reviewed-by: Igor Kozhukhov <igor@dilos.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes #9533
This commit is contained in:
parent
59055a0164
commit
a5308e252d
|
@ -168,7 +168,7 @@ rs_get_fill_raw(const range_seg_t *rs, const range_tree_t *rt)
|
||||||
return (r64->rs_end - r64->rs_start);
|
return (r64->rs_end - r64->rs_start);
|
||||||
}
|
}
|
||||||
case RANGE_SEG_GAP:
|
case RANGE_SEG_GAP:
|
||||||
return (((range_seg_gap_t *)rs)->rs_fill);
|
return (((const range_seg_gap_t *)rs)->rs_fill);
|
||||||
default:
|
default:
|
||||||
VERIFY(0);
|
VERIFY(0);
|
||||||
return (0);
|
return (0);
|
||||||
|
|
Loading…
Reference in New Issue