mirror of https://github.com/ceph/go-ceph
rbd: naming conventions: fixes in SetSnapshot function
Fix up variable names that don't meet Go standards. Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
1cbbe2cea5
commit
e4cfae9eaa
|
@ -959,10 +959,10 @@ func (image *Image) SetSnapshot(snapname string) error {
|
|||
return err
|
||||
}
|
||||
|
||||
c_snapname := C.CString(snapname)
|
||||
defer C.free(unsafe.Pointer(c_snapname))
|
||||
cSnapName := C.CString(snapname)
|
||||
defer C.free(unsafe.Pointer(cSnapName))
|
||||
|
||||
return getError(C.rbd_snap_set(image.image, c_snapname))
|
||||
return getError(C.rbd_snap_set(image.image, cSnapName))
|
||||
}
|
||||
|
||||
// GetTrashList returns a slice of TrashInfo structs, containing information about all RBD images
|
||||
|
|
Loading…
Reference in New Issue