diff options
author | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2010-10-21 10:36:36 +0000 |
---|---|---|
committer | Pawel Jakub Dawidek <pjd@FreeBSD.org> | 2010-10-21 10:36:36 +0000 |
commit | 91cca30d9c3c2a9926e4b9c6bb02c331e69000dc (patch) | |
tree | 4e1eab2c718e0a94f8c9896e72925ca1f984d870 | |
parent | 00e3c12e031607360d67e4ca23f1ccfc01596183 (diff) |
Notes
-rw-r--r-- | lib/libgeom/geom_ctl.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/libgeom/geom_ctl.c b/lib/libgeom/geom_ctl.c index 59691cc2e9f5c..3ede5f4fbc17c 100644 --- a/lib/libgeom/geom_ctl.c +++ b/lib/libgeom/geom_ctl.c @@ -54,7 +54,7 @@ static char nomemmsg[] = "Could not allocate memory"; void gctl_dump(struct gctl_req *req, FILE *f) { - u_int i; + unsigned int i; int j; struct gctl_req_arg *ap; @@ -126,10 +126,8 @@ gctl_check_alloc(struct gctl_req *req, void *ptr) struct gctl_req * gctl_get_handle(void) { - struct gctl_req *rp; - rp = calloc(1, sizeof *rp); - return (rp); + return (calloc(1, sizeof(struct gctl_req))); } /* @@ -233,7 +231,7 @@ gctl_issue(struct gctl_req *req) void gctl_free(struct gctl_req *req) { - u_int i; + unsigned int i; if (req == NULL) return; |