From: Christophe Courtaut Date: Thu, 31 Oct 2013 16:43:35 +0000 (+0100) Subject: libcephfs: Fix compilation for C compiler X-Git-Tag: v0.73~46 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=12238d0906ad0ba6306b00594dffba0191728200;p=ceph.git 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 --- diff --git a/src/include/cephfs/libcephfs.h b/src/include/cephfs/libcephfs.h index f2ab2ae61e18..9b74f63c062d 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.