summaryrefslogtreecommitdiff
path: root/src/iou.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2021-08-15 21:22:52 -0700
committerVito Caputo <vcaputo@pengaru.com>2021-08-15 21:22:52 -0700
commitcc4882e50e33da8beceb0546916d1050e9efb7f2 (patch)
tree7734b95dba9de7bfaefbc887c1b227e6ee52d5c5 /src/iou.c
parent566684ac9fc98c7519aaafa42f88e11372e43899 (diff)
iou: cosmetic mechanical rename s/new/_op/
trivial cleanup to make naming a bit more consistent
Diffstat (limited to 'src/iou.c')
-rw-r--r--src/iou.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/iou.c b/src/iou.c
index b7b83e7..f4fc4e7 100644
--- a/src/iou.c
+++ b/src/iou.c
@@ -82,23 +82,23 @@ iou_t * iou_free(iou_t *iou)
*/
iou_op_t * iou_op_new(iou_t *iou)
{
- _iou_op_t *new;
+ _iou_op_t *_op;
assert(iou);
- new = calloc(1, sizeof(*new));
- if (!new)
+ _op = calloc(1, sizeof(*_op));
+ if (!_op)
return NULL;
- new->public.sqe = io_uring_get_sqe(&iou->ring);
- if (!new->public.sqe) {
- free(new);
+ _op->public.sqe = io_uring_get_sqe(&iou->ring);
+ if (!_op->public.sqe) {
+ free(_op);
return NULL;
}
iou->n_issued++;
- return &new->public;
+ return &_op->public;
}
© All Rights Reserved