mirror of https://github.com/ceph/go-ceph
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:
parent
801a9cc498
commit
7f77d82bab
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue