From 9619de1d84633e34b41917b162bbdac7babd65b3 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Mon, 21 Jun 2021 16:21:24 -0400 Subject: [PATCH] rados: naming conventions: c_opt/c_val -> cOpt/cVal Fix up variable names that don't meet Go standards. Command: gofmt -w -r "c_opt -> cOpt" rados/conn.go Command: gofmt -w -r "c_val -> cVal" rados/conn.go Signed-off-by: John Mulligan --- rados/conn.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rados/conn.go b/rados/conn.go index cab0c8d..1f26e93 100644 --- a/rados/conn.go +++ b/rados/conn.go @@ -127,10 +127,10 @@ func (c *Conn) ListPools() (names []string, err error) { // SetConfigOption sets the value of the configuration option identified by // the given name. func (c *Conn) SetConfigOption(option, value string) error { - c_opt, c_val := C.CString(option), C.CString(value) - defer C.free(unsafe.Pointer(c_opt)) - defer C.free(unsafe.Pointer(c_val)) - ret := C.rados_conf_set(c.cluster, c_opt, c_val) + cOpt, cVal := C.CString(option), C.CString(value) + defer C.free(unsafe.Pointer(cOpt)) + defer C.free(unsafe.Pointer(cVal)) + ret := C.rados_conf_set(c.cluster, cOpt, cVal) return getError(ret) }