mirror of
https://github.com/ceph/go-ceph
synced 2024-12-22 22:24:03 +00:00
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:
parent
f25ee98e0a
commit
e0727d9cf7
@ -50,14 +50,14 @@ func (iter *Iter) Seek(token IterToken) {
|
|||||||
// return iter.Err()
|
// return iter.Err()
|
||||||
//
|
//
|
||||||
func (iter *Iter) Next() bool {
|
func (iter *Iter) Next() bool {
|
||||||
var c_entry *C.char
|
var cEntry *C.char
|
||||||
var c_namespace *C.char
|
var cNamespace *C.char
|
||||||
if cerr := C.rados_nobjects_list_next(iter.ctx, &c_entry, nil, &c_namespace); cerr < 0 {
|
if cerr := C.rados_nobjects_list_next(iter.ctx, &cEntry, nil, &cNamespace); cerr < 0 {
|
||||||
iter.err = getError(cerr)
|
iter.err = getError(cerr)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
iter.entry = C.GoString(c_entry)
|
iter.entry = C.GoString(cEntry)
|
||||||
iter.namespace = C.GoString(c_namespace)
|
iter.namespace = C.GoString(cNamespace)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user