rbd: naming conventions: fixes in BreakLock 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:24 -04:00 committed by John Mulligan
parent 8848df53e1
commit d1b251fef5
1 changed files with 5 additions and 5 deletions

View File

@ -696,12 +696,12 @@ func (image *Image) BreakLock(client string, cookie string) error {
return err return err
} }
c_client := C.CString(client) cClient := C.CString(client)
c_cookie := C.CString(cookie) cCookie := C.CString(cookie)
defer C.free(unsafe.Pointer(c_client)) defer C.free(unsafe.Pointer(cClient))
defer C.free(unsafe.Pointer(c_cookie)) defer C.free(unsafe.Pointer(cCookie))
return getError(C.rbd_break_lock(image.image, c_client, c_cookie)) return getError(C.rbd_break_lock(image.image, cClient, cCookie))
} }
// ssize_t rbd_read(rbd_image_t image, uint64_t ofs, size_t len, char *buf); // ssize_t rbd_read(rbd_image_t image, uint64_t ofs, size_t len, char *buf);