rados: naming conventions: fixes in RmXattr function

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

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2021-06-28 11:08:18 -04:00 committed by John Mulligan
parent 4dc59eed6a
commit f4a114fdd6
1 changed files with 6 additions and 6 deletions

View File

@ -412,15 +412,15 @@ func (ioctx *IOContext) ListXattrs(oid string) (map[string][]byte, error) {
// RmXattr removes an xattr with key `name` from object `oid`
func (ioctx *IOContext) RmXattr(oid string, name string) error {
c_oid := C.CString(oid)
c_name := C.CString(name)
defer C.free(unsafe.Pointer(c_oid))
defer C.free(unsafe.Pointer(c_name))
coid := C.CString(oid)
cName := C.CString(name)
defer C.free(unsafe.Pointer(coid))
defer C.free(unsafe.Pointer(cName))
ret := C.rados_rmxattr(
ioctx.ioctx,
c_oid,
c_name)
coid,
cName)
return getError(ret)
}