From cc4882e50e33da8beceb0546916d1050e9efb7f2 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 15 Aug 2021 21:22:52 -0700 Subject: iou: cosmetic mechanical rename s/new/_op/ trivial cleanup to make naming a bit more consistent --- src/iou.c | 14 +++++++------- 1 file 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; } -- cgit v1.2.3