From 12238d0906ad0ba6306b00594dffba0191728200 Mon Sep 17 00:00:00 2001 From: Christophe Courtaut Date: Thu, 31 Oct 2013 17:43:35 +0100 Subject: [PATCH] libcephfs: Fix compilation for C compiler Use struct instead of class, even if it warns. Warnings are lower priority than compilation break. Signed-off-by: Christophe Courtaut --- src/include/cephfs/libcephfs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/include/cephfs/libcephfs.h b/src/include/cephfs/libcephfs.h index f2ab2ae61e181..9b74f63c062d3 100644 --- a/src/include/cephfs/libcephfs.h +++ b/src/include/cephfs/libcephfs.h @@ -40,7 +40,7 @@ extern "C" { struct ceph_mount_info; struct ceph_dir_result; -class CephContext; +struct CephContext; /* setattr mask bits */ #ifndef CEPH_SETATTR_MODE @@ -94,7 +94,7 @@ int ceph_create(struct ceph_mount_info **cmount, const char * const id); * @param conf reuse this pre-existing CephContext config * @returns 0 on success, negative error code on failure */ -int ceph_create_with_context(struct ceph_mount_info **cmount, class CephContext *conf); +int ceph_create_with_context(struct ceph_mount_info **cmount, struct CephContext *conf); /** * Perform a mount using the path for the root of the mount. @@ -142,7 +142,7 @@ void ceph_shutdown(struct ceph_mount_info *cmount); * @param cmount the ceph mount handle to get the context from. * @returns the CephContext associated with the mount handle. */ -class CephContext *ceph_get_mount_context(struct ceph_mount_info *cmount); +struct CephContext *ceph_get_mount_context(struct ceph_mount_info *cmount); /* * Check mount status. -- 2.39.5