From 64b7c369f902b89988a46fc1bba2ff82fb3bd662 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Tue, 3 Feb 2015 21:06:37 +0100 Subject: [PATCH] rbd-fuse.cc: use static_cast instead of c-style cast Signed-off-by: Danny Al-Gaaf --- src/rbd_fuse/rbd-fuse.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rbd_fuse/rbd-fuse.cc b/src/rbd_fuse/rbd-fuse.cc index 1fbe2781bcf..c53e5b6c3df 100644 --- a/src/rbd_fuse/rbd-fuse.cc +++ b/src/rbd_fuse/rbd-fuse.cc @@ -128,7 +128,7 @@ enumerate_images(struct rbd_image_data *data) ((strlen(mount_image_name) > 0) && (strcmp(ip, mount_image_name) == 0))) { fprintf(stderr, "%s, ", ip); - im = (rbd_image*) malloc(sizeof(*im)); + im = static_cast(malloc(sizeof(*im))); im->image_name = ip; im->next = *head; *head = im; -- 2.47.3