rbd: fix naming convention violations in snapshot.go

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

Command: gofmt -w -r 'c_is_protected -> cIsProtected' rbd/snapshot.go

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2021-07-19 15:05:37 -04:00 committed by John Mulligan
parent 7536a52346
commit bf0ddeffa9
1 changed files with 3 additions and 3 deletions

View File

@ -133,18 +133,18 @@ func (snapshot *Snapshot) IsProtected() (bool, error) {
return false, err
}
var c_is_protected C.int
var cIsProtected C.int
cSnapName := C.CString(snapshot.name)
defer C.free(unsafe.Pointer(cSnapName))
ret := C.rbd_snap_is_protected(snapshot.image.image, cSnapName,
&c_is_protected)
&cIsProtected)
if ret < 0 {
return false, rbdError(ret)
}
return c_is_protected != 0, nil
return cIsProtected != 0, nil
}
// Set updates the rbd image (not the Snapshot) such that the snapshot