rbd: naming conventions: fixes in Copy 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:46:46 -04:00 committed by John Mulligan
parent 2add913aaf
commit 96846c2ccf
1 changed files with 3 additions and 3 deletions

View File

@ -516,11 +516,11 @@ func (image *Image) Copy(ioctx *rados.IOContext, destname string) error {
return ErrNoName
}
c_destname := C.CString(destname)
defer C.free(unsafe.Pointer(c_destname))
cDestName := C.CString(destname)
defer C.free(unsafe.Pointer(cDestName))
return getError(C.rbd_copy(image.image,
cephIoctx(ioctx), c_destname))
cephIoctx(ioctx), cDestName))
}
// Copy2 copies one rbd image to another, using an image handle.