]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
We pass a pointer to the flags to dabitsysctl, not an integer. Adjust the
authorimp <imp@FreeBSD.org>
Fri, 21 Feb 2020 22:44:22 +0000 (22:44 +0000)
committerimp <imp@FreeBSD.org>
Fri, 21 Feb 2020 22:44:22 +0000 (22:44 +0000)
commit2ec720325953bacec99fc2c1d07c1c2c124afb16
tree13dd8bbe831eea96630e259ba035c1924bcb1cf7
parenta764336979597a09bee96de5379058cf10ad319d
We pass a pointer to the flags to dabitsysctl, not an integer. Adjust the
handler to accept a poitner to a u_int. To make the type of the softc flags
stable and defined, make it a u_int. Cast the enum types to u_int for arg2 so
when passing to dabitsysctl it's a u_int.

Noticed by: emax@
Differential Revision: https://reviews.freebsd.org/D23785
sys/cam/scsi/scsi_da.c