rados: naming conventions: c_user -> cUser

Fix up variable names that don't meet Go standards.

Command: gofmt -w -r "c_user -> cUser" rados/rados.go

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2021-06-21 16:30:39 -04:00 committed by John Mulligan
parent 801a9cc498
commit 7f77d82bab
1 changed files with 3 additions and 3 deletions

View File

@ -85,9 +85,9 @@ func NewConn() (*Conn, error) {
// NewConnWithUser creates a new connection object with a custom username. // NewConnWithUser creates a new connection object with a custom username.
// It returns the connection and an error, if any. // It returns the connection and an error, if any.
func NewConnWithUser(user string) (*Conn, error) { func NewConnWithUser(user string) (*Conn, error) {
c_user := C.CString(user) cUser := C.CString(user)
defer C.free(unsafe.Pointer(c_user)) defer C.free(unsafe.Pointer(cUser))
return newConn(c_user) return newConn(cUser)
} }
// NewConnWithClusterAndUser creates a new connection object for a specific cluster and username. // NewConnWithClusterAndUser creates a new connection object for a specific cluster and username.