mirror of https://github.com/ceph/go-ceph
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 <jmulligan@redhat.com>
This commit is contained in:
parent
debaac7031
commit
9619de1d84
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue