mirror of
https://github.com/ceph/ceph
synced 2024-12-18 01:16:55 +00:00
rbd-fuse.c: fix -Wmissing-field-initializers
Init image_name with NULL to fix: rbd_fuse/rbd-fuse.c:57:63: warning: missing field 'image_name' initializer [-Wmissing-field-initializers] struct rbd_options rbd_options = {"/etc/ceph/ceph.conf", "rbd"}; Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
This commit is contained in:
parent
082367e8b2
commit
8101f980da
@ -54,7 +54,7 @@ struct rbd_openimage {
|
||||
#define MAX_RBD_IMAGES 128
|
||||
struct rbd_openimage opentbl[MAX_RBD_IMAGES];
|
||||
|
||||
struct rbd_options rbd_options = {"/etc/ceph/ceph.conf", "rbd"};
|
||||
struct rbd_options rbd_options = {"/etc/ceph/ceph.conf", "rbd", NULL};
|
||||
|
||||
#define rbdsize(fd) opentbl[fd].rbd_stat.rbd_info.size
|
||||
#define rbdblksize(fd) opentbl[fd].rbd_stat.rbd_info.obj_size
|
||||
|
Loading…
Reference in New Issue
Block a user