From 46c860c614177b5bf6f26ee03129424ebf29715e Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Mon, 21 Jun 2021 16:20:00 -0400 Subject: [PATCH] rados: naming conventions: c_pool -> cPool Fix up variable names that don't meet Go standards. Command: gofmt -w -r "c_pool -> cPool" rados/conn.go Signed-off-by: John Mulligan --- rados/conn.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rados/conn.go b/rados/conn.go index eb2e03f..0f36e87 100644 --- a/rados/conn.go +++ b/rados/conn.go @@ -94,10 +94,10 @@ func (c *Conn) ReadDefaultConfigFile() error { // int rados_ioctx_create(rados_t cluster, const char *pool_name, // rados_ioctx_t *ioctx); func (c *Conn) OpenIOContext(pool string) (*IOContext, error) { - c_pool := C.CString(pool) - defer C.free(unsafe.Pointer(c_pool)) + cPool := C.CString(pool) + defer C.free(unsafe.Pointer(cPool)) ioctx := &IOContext{} - ret := C.rados_ioctx_create(c.cluster, c_pool, &ioctx.ioctx) + ret := C.rados_ioctx_create(c.cluster, cPool, &ioctx.ioctx) if ret == 0 { return ioctx, nil }