diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2021-08-15 21:22:52 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2021-08-15 21:22:52 -0700 |
commit | cc4882e50e33da8beceb0546916d1050e9efb7f2 (patch) | |
tree | 7734b95dba9de7bfaefbc887c1b227e6ee52d5c5 /src/iou.c | |
parent | 566684ac9fc98c7519aaafa42f88e11372e43899 (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.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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; } |