mirror of https://github.com/ceph/go-ceph
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:
parent
8848df53e1
commit
d1b251fef5
10
rbd/rbd.go
10
rbd/rbd.go
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue