rbd: naming conventions: fixes in Unlock 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:48:09 -04:00 committed by John Mulligan
parent 70db71e0b6
commit 8848df53e1
1 changed files with 3 additions and 3 deletions

View File

@ -681,10 +681,10 @@ func (image *Image) Unlock(cookie string) error {
return err return err
} }
c_cookie := C.CString(cookie) cCookie := C.CString(cookie)
defer C.free(unsafe.Pointer(c_cookie)) defer C.free(unsafe.Pointer(cCookie))
return getError(C.rbd_unlock(image.image, c_cookie)) return getError(C.rbd_unlock(image.image, cCookie))
} }
// BreakLock forces the release of a lock held by another client. // BreakLock forces the release of a lock held by another client.