rbd: naming conventions: fixes in RemoveImage 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:50:39 -04:00 committed by John Mulligan
parent ae97cd3e7d
commit 8ea2109309
1 changed files with 3 additions and 3 deletions

View File

@ -1225,9 +1225,9 @@ func RemoveImage(ioctx *rados.IOContext, name string) error {
return ErrNoName
}
c_name := C.CString(name)
defer C.free(unsafe.Pointer(c_name))
return getError(C.rbd_remove(cephIoctx(ioctx), c_name))
cName := C.CString(name)
defer C.free(unsafe.Pointer(cName))
return getError(C.rbd_remove(cephIoctx(ioctx), cName))
}
// CloneImage creates a clone of the image from the named snapshot in the