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:
John Mulligan 2021-07-19 16:49:21 -04:00 committed by John Mulligan
parent 1cbbe2cea5
commit e4cfae9eaa
1 changed files with 3 additions and 3 deletions

View File

@ -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