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 <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2021-06-21 16:20:00 -04:00 committed by John Mulligan
parent 5cbf7c6514
commit 46c860c614

View File

@ -94,10 +94,10 @@ func (c *Conn) ReadDefaultConfigFile() error {
// int rados_ioctx_create(rados_t cluster, const char *pool_name, // int rados_ioctx_create(rados_t cluster, const char *pool_name,
// rados_ioctx_t *ioctx); // rados_ioctx_t *ioctx);
func (c *Conn) OpenIOContext(pool string) (*IOContext, error) { func (c *Conn) OpenIOContext(pool string) (*IOContext, error) {
c_pool := C.CString(pool) cPool := C.CString(pool)
defer C.free(unsafe.Pointer(c_pool)) defer C.free(unsafe.Pointer(cPool))
ioctx := &IOContext{} 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 { if ret == 0 {
return ioctx, nil return ioctx, nil
} }