From b7b21273e31d74588e5c3772f1dcce0a69477703 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Mon, 28 Jun 2021 11:08:18 -0400 Subject: [PATCH] rados: naming conventions: fixes in Write function Fix up variable names that don't meet Go standards. Signed-off-by: John Mulligan --- rados/ioctx.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rados/ioctx.go b/rados/ioctx.go index 4173328..646686f 100644 --- a/rados/ioctx.go +++ b/rados/ioctx.go @@ -137,15 +137,15 @@ func (ioctx *IOContext) Create(oid string, exclusive CreateOption) error { // Write writes len(data) bytes to the object with key oid starting at byte // offset offset. It returns an error, if any. func (ioctx *IOContext) Write(oid string, data []byte, offset uint64) error { - c_oid := C.CString(oid) - defer C.free(unsafe.Pointer(c_oid)) + coid := C.CString(oid) + defer C.free(unsafe.Pointer(coid)) dataPointer := unsafe.Pointer(nil) if len(data) > 0 { dataPointer = unsafe.Pointer(&data[0]) } - ret := C.rados_write(ioctx.ioctx, c_oid, + ret := C.rados_write(ioctx.ioctx, coid, (*C.char)(dataPointer), (C.size_t)(len(data)), (C.uint64_t)(offset))