rbd: naming conventions: fixes in Trash 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:43:40 -04:00 committed by John Mulligan
parent 645fd2be49
commit 07df8d3338
1 changed files with 3 additions and 3 deletions

View File

@ -292,10 +292,10 @@ func (image *Image) Trash(delay time.Duration) error {
return err
}
c_name := C.CString(image.name)
defer C.free(unsafe.Pointer(c_name))
cName := C.CString(image.name)
defer C.free(unsafe.Pointer(cName))
return getError(C.rbd_trash_move(cephIoctx(image.ioctx), c_name,
return getError(C.rbd_trash_move(cephIoctx(image.ioctx), cName,
C.uint64_t(delay.Seconds())))
}