rados: naming conventions: fix c_entry, c_namespace

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

Command: gofmt -w -r "c_entry -> cEntry" rados/object_iter.go
Command: gofmt -w -r "c_namespace -> cNamespace" rados/object_iter.go

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2021-06-21 16:35:47 -04:00 committed by John Mulligan
parent f25ee98e0a
commit e0727d9cf7
1 changed files with 5 additions and 5 deletions

View File

@ -50,14 +50,14 @@ func (iter *Iter) Seek(token IterToken) {
// return iter.Err()
//
func (iter *Iter) Next() bool {
var c_entry *C.char
var c_namespace *C.char
if cerr := C.rados_nobjects_list_next(iter.ctx, &c_entry, nil, &c_namespace); cerr < 0 {
var cEntry *C.char
var cNamespace *C.char
if cerr := C.rados_nobjects_list_next(iter.ctx, &cEntry, nil, &cNamespace); cerr < 0 {
iter.err = getError(cerr)
return false
}
iter.entry = C.GoString(c_entry)
iter.namespace = C.GoString(c_namespace)
iter.entry = C.GoString(cEntry)
iter.namespace = C.GoString(cNamespace)
return true
}