From 402707f2f5a3ded035a910e0f795289fb375f036 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 WriteFull 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 646686f..f59455d 100644 --- a/rados/ioctx.go +++ b/rados/ioctx.go @@ -157,10 +157,10 @@ func (ioctx *IOContext) Write(oid string, data []byte, offset uint64) error { // The object is filled with the provided data. If the object exists, // it is atomically truncated and then written. It returns an error, if any. func (ioctx *IOContext) WriteFull(oid string, data []byte) error { - c_oid := C.CString(oid) - defer C.free(unsafe.Pointer(c_oid)) + coid := C.CString(oid) + defer C.free(unsafe.Pointer(coid)) - ret := C.rados_write_full(ioctx.ioctx, c_oid, + ret := C.rados_write_full(ioctx.ioctx, coid, (*C.char)(unsafe.Pointer(&data[0])), (C.size_t)(len(data))) return getError(ret)