From e7cdc8fa6866bf4d0b04eb14baca5719ab24ce11 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 Truncate 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 adf969e..6f8ec92 100644 --- a/rados/ioctx.go +++ b/rados/ioctx.go @@ -216,10 +216,10 @@ func (ioctx *IOContext) Delete(oid string) error { // operation shrinks the object, the excess data is removed. It returns an // error, if any. func (ioctx *IOContext) Truncate(oid string, size uint64) error { - c_oid := C.CString(oid) - defer C.free(unsafe.Pointer(c_oid)) + coid := C.CString(oid) + defer C.free(unsafe.Pointer(coid)) - return getError(C.rados_trunc(ioctx.ioctx, c_oid, (C.uint64_t)(size))) + return getError(C.rados_trunc(ioctx.ioctx, coid, (C.uint64_t)(size))) } // Destroy informs librados that the I/O context is no longer in use.