mirror of https://github.com/ceph/go-ceph
rbd: naming conventions: fixes in CreateImage 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
6abfb039a4
commit
ae97cd3e7d
|
@ -1205,10 +1205,10 @@ func CreateImage(ioctx *rados.IOContext, name string, size uint64, rio *ImageOpt
|
||||||
return rbdError(C.EINVAL)
|
return rbdError(C.EINVAL)
|
||||||
}
|
}
|
||||||
|
|
||||||
c_name := C.CString(name)
|
cName := C.CString(name)
|
||||||
defer C.free(unsafe.Pointer(c_name))
|
defer C.free(unsafe.Pointer(cName))
|
||||||
|
|
||||||
ret := C.rbd_create4(cephIoctx(ioctx), c_name,
|
ret := C.rbd_create4(cephIoctx(ioctx), cName,
|
||||||
C.uint64_t(size), C.rbd_image_options_t(rio.options))
|
C.uint64_t(size), C.rbd_image_options_t(rio.options))
|
||||||
return getError(ret)
|
return getError(ret)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue