]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
geom: unsign some types to match their definitions and avoid overflows.
authorPedro F. Giffuni <pfg@FreeBSD.org>
Wed, 27 Apr 2016 15:10:40 +0000 (15:10 +0000)
committerPedro F. Giffuni <pfg@FreeBSD.org>
Wed, 27 Apr 2016 15:10:40 +0000 (15:10 +0000)
commitb99bce73e2029b200fd178abab11737d6f2c6aed
tree948a0c224fcfeb510dcd945a1caea8c7c6d5504d
parent9e3db01282fd5f574ada39546328afd6f89846b1
geom: unsign some types to match their definitions and avoid overflows.

In struct:gctl_req, nargs is unsigned.

In mirror:
g_mirror_syncreqs is unsigned.

In raid:
in struct:g_raid_volume, v_disks_count is unsigned.

In virstor:
in struct:g_virstor_softc, n_components is unsigned.

MFC after: 2 weeks
sys/geom/geom_ctl.c
sys/geom/mirror/g_mirror.c
sys/geom/raid/md_promise.c
sys/geom/raid/md_sii.c
sys/geom/virstor/g_virstor.c