From 751c644eb5ca9e86086c95ee41aceab99fc852e3 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Mon, 19 Jul 2021 16:44:25 -0400 Subject: [PATCH] rbd: naming conventions: fixes in Rename function Fix up variable names that don't meet Go standards. Signed-off-by: John Mulligan --- rbd/rbd.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rbd/rbd.go b/rbd/rbd.go index d26807d..3c2abf0 100644 --- a/rbd/rbd.go +++ b/rbd/rbd.go @@ -308,14 +308,14 @@ func (image *Image) Rename(destname string) error { return err } - c_srcname := C.CString(image.name) - c_destname := C.CString(destname) + cSrcName := C.CString(image.name) + cDestName := C.CString(destname) - defer C.free(unsafe.Pointer(c_srcname)) - defer C.free(unsafe.Pointer(c_destname)) + defer C.free(unsafe.Pointer(cSrcName)) + defer C.free(unsafe.Pointer(cDestName)) err := rbdError(C.rbd_rename(cephIoctx(image.ioctx), - c_srcname, c_destname)) + cSrcName, cDestName)) if err == 0 { image.name = destname return nil