rados: naming conventions: fixes in ListObjects function

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

Command: gofmt -w -r "c_entry -> cEntry" rados/ioctx.go

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 c45780d58d
commit 9f1fdbbe9e
1 changed files with 3 additions and 3 deletions

View File

@ -306,14 +306,14 @@ func (ioctx *IOContext) ListObjects(listFn ObjectListFunc) error {
defer func() { C.rados_nobjects_list_close(ctx) }()
for {
var c_entry *C.char
ret := C.rados_nobjects_list_next(ctx, &c_entry, nil, nil)
var cEntry *C.char
ret := C.rados_nobjects_list_next(ctx, &cEntry, nil, nil)
if ret == -C.ENOENT {
return nil
} else if ret < 0 {
return getError(ret)
}
listFn(C.GoString(c_entry))
listFn(C.GoString(cEntry))
}
}