From ae97cd3e7d37b6de8205a98933f72e39b9816150 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Mon, 19 Jul 2021 16:50:29 -0400 Subject: [PATCH] rbd: naming conventions: fixes in CreateImage function Fix up variable names that don't meet Go standards. Signed-off-by: John Mulligan --- rbd/rbd.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rbd/rbd.go b/rbd/rbd.go index 82d1ae8..b74aa31 100644 --- a/rbd/rbd.go +++ b/rbd/rbd.go @@ -1205,10 +1205,10 @@ func CreateImage(ioctx *rados.IOContext, name string, size uint64, rio *ImageOpt return rbdError(C.EINVAL) } - c_name := C.CString(name) - defer C.free(unsafe.Pointer(c_name)) + cName := C.CString(name) + defer C.free(unsafe.Pointer(cName)) - ret := C.rbd_create4(cephIoctx(ioctx), c_name, + ret := C.rbd_create4(cephIoctx(ioctx), cName, C.uint64_t(size), C.rbd_image_options_t(rio.options)) return getError(ret) }