From e4cfae9eaaf4e7a4b7fcac5e6eb3893e13529991 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Mon, 19 Jul 2021 16:49:21 -0400 Subject: [PATCH] rbd: naming conventions: fixes in SetSnapshot function Fix up variable names that don't meet Go standards. Signed-off-by: John Mulligan --- rbd/rbd.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rbd/rbd.go b/rbd/rbd.go index 7269fa8..2be1dec 100644 --- a/rbd/rbd.go +++ b/rbd/rbd.go @@ -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