diff options
author | pfg <pfg@FreeBSD.org> | 2016-05-11 00:36:31 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2016-05-11 00:36:31 +0000 |
commit | 85aa8af6708f6cd2bda3d737261842559c1379f7 (patch) | |
tree | 8ccfde7a85ab98e9727200acab33ee05ba14ac22 /sys/geom/geom_ctl.c | |
parent | a1c8425fe97cea5ac16cf8eb1f8139db87d31fcc (diff) | |
download | FreeBSD-src-85aa8af6708f6cd2bda3d737261842559c1379f7.zip FreeBSD-src-85aa8af6708f6cd2bda3d737261842559c1379f7.tar.gz |
MFC r298698:
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.
Diffstat (limited to 'sys/geom/geom_ctl.c')
-rw-r--r-- | sys/geom/geom_ctl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/geom/geom_ctl.c b/sys/geom/geom_ctl.c index a5fa3d7..71a8c26 100644 --- a/sys/geom/geom_ctl.c +++ b/sys/geom/geom_ctl.c @@ -135,7 +135,7 @@ gctl_copyin(struct gctl_req *req) { struct gctl_req_arg *ap; char *p; - int i; + u_int i; ap = geom_alloc_copyin(req, req->arg, req->narg * sizeof(*ap)); if (ap == NULL) { @@ -212,7 +212,7 @@ gctl_copyout(struct gctl_req *req) static void gctl_free(struct gctl_req *req) { - int i; + u_int i; sbuf_delete(req->serror); if (req->arg == NULL) @@ -270,7 +270,7 @@ int gctl_set_param(struct gctl_req *req, const char *param, void const *ptr, int len) { - int i; + u_int i; struct gctl_req_arg *ap; for (i = 0; i < req->narg; i++) { @@ -311,7 +311,7 @@ gctl_set_param_err(struct gctl_req *req, const char *param, void const *ptr, void * gctl_get_param(struct gctl_req *req, const char *param, int *len) { - int i; + u_int i; void *p; struct gctl_req_arg *ap; @@ -332,7 +332,7 @@ gctl_get_param(struct gctl_req *req, const char *param, int *len) char const * gctl_get_asciiparam(struct gctl_req *req, const char *param) { - int i; + u_int i; char const *p; struct gctl_req_arg *ap; |