rbd: naming conventions: fixes in Rename function

Fix up variable names that don't meet Go standards.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2021-07-19 16:44:25 -04:00 committed by John Mulligan
parent 07df8d3338
commit 751c644eb5
1 changed files with 5 additions and 5 deletions

View File

@ -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