mirror of https://github.com/ceph/go-ceph
rbd: naming conventions: fixes in Copy 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
2add913aaf
commit
96846c2ccf
|
@ -516,11 +516,11 @@ func (image *Image) Copy(ioctx *rados.IOContext, destname string) error {
|
|||
return ErrNoName
|
||||
}
|
||||
|
||||
c_destname := C.CString(destname)
|
||||
defer C.free(unsafe.Pointer(c_destname))
|
||||
cDestName := C.CString(destname)
|
||||
defer C.free(unsafe.Pointer(cDestName))
|
||||
|
||||
return getError(C.rbd_copy(image.image,
|
||||
cephIoctx(ioctx), c_destname))
|
||||
cephIoctx(ioctx), cDestName))
|
||||
}
|
||||
|
||||
// Copy2 copies one rbd image to another, using an image handle.
|
||||
|
|
Loading…
Reference in New Issue