From ee7767a0d3b379185aac3282b0db1470dd01f9ee Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Mon, 19 Jul 2021 16:45:43 -0400 Subject: [PATCH] rbd: naming conventions: fixes in IsOldFormat function Fix up variable names that don't meet Go standards. Signed-off-by: John Mulligan --- rbd/rbd.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rbd/rbd.go b/rbd/rbd.go index 89735e7..384d7c0 100644 --- a/rbd/rbd.go +++ b/rbd/rbd.go @@ -421,19 +421,19 @@ func (image *Image) Stat() (info *ImageInfo, err error) { // // Implements: // int rbd_get_old_format(rbd_image_t image, uint8_t *old); -func (image *Image) IsOldFormat() (old_format bool, err error) { +func (image *Image) IsOldFormat() (bool, error) { if err := image.validate(imageIsOpen); err != nil { return false, err } - var c_old_format C.uint8_t + var cOldFormat C.uint8_t ret := C.rbd_get_old_format(image.image, - &c_old_format) + &cOldFormat) if ret < 0 { return false, rbdError(ret) } - return c_old_format != 0, nil + return cOldFormat != 0, nil } // GetSize returns the size of the rbd image.