- Simplify gctl_get_handle() a bit.
- Prefer 'unsigned int' over 'u_int' in userland code.
This commit is contained in:
parent
00e3c12e03
commit
91cca30d9c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=214128
@ -54,7 +54,7 @@ static char nomemmsg[] = "Could not allocate memory";
|
|||||||
void
|
void
|
||||||
gctl_dump(struct gctl_req *req, FILE *f)
|
gctl_dump(struct gctl_req *req, FILE *f)
|
||||||
{
|
{
|
||||||
u_int i;
|
unsigned int i;
|
||||||
int j;
|
int j;
|
||||||
struct gctl_req_arg *ap;
|
struct gctl_req_arg *ap;
|
||||||
|
|
||||||
@ -126,10 +126,8 @@ gctl_check_alloc(struct gctl_req *req, void *ptr)
|
|||||||
struct gctl_req *
|
struct gctl_req *
|
||||||
gctl_get_handle(void)
|
gctl_get_handle(void)
|
||||||
{
|
{
|
||||||
struct gctl_req *rp;
|
|
||||||
|
|
||||||
rp = calloc(1, sizeof *rp);
|
return (calloc(1, sizeof(struct gctl_req)));
|
||||||
return (rp);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -233,7 +231,7 @@ gctl_issue(struct gctl_req *req)
|
|||||||
void
|
void
|
||||||
gctl_free(struct gctl_req *req)
|
gctl_free(struct gctl_req *req)
|
||||||
{
|
{
|
||||||
u_int i;
|
unsigned int i;
|
||||||
|
|
||||||
if (req == NULL)
|
if (req == NULL)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user