mirror of https://github.com/ceph/go-ceph
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:
parent
c45780d58d
commit
9f1fdbbe9e
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue