diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-27 15:10:40 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-27 15:10:40 +0000 |
commit | b99bce73e2029b200fd178abab11737d6f2c6aed (patch) | |
tree | 948a0c224fcfeb510dcd945a1caea8c7c6d5504d /sys/geom/mirror | |
parent | 9e3db01282fd5f574ada39546328afd6f89846b1 (diff) | |
download | src-b99bce73e2029b200fd178abab11737d6f2c6aed.tar.gz src-b99bce73e2029b200fd178abab11737d6f2c6aed.zip |
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
Notes
Notes:
svn path=/head/; revision=298698
Diffstat (limited to 'sys/geom/mirror')
-rw-r--r-- | sys/geom/mirror/g_mirror.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/geom/mirror/g_mirror.c b/sys/geom/mirror/g_mirror.c index 59da98027266..5ef4d5c3d63c 100644 --- a/sys/geom/mirror/g_mirror.c +++ b/sys/geom/mirror/g_mirror.c @@ -1160,7 +1160,7 @@ g_mirror_sync_collision(struct g_mirror_softc *sc, struct bio *bp) struct g_mirror_disk *disk; struct bio *sbp; off_t rstart, rend, sstart, send; - int i; + u_int i; if (sc->sc_sync.ds_ndisks == 0) return (0); |