]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
libcephfs.h: fix unnecessary forward declarations
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 17 Mar 2015 21:58:19 +0000 (22:58 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 15 Apr 2015 10:24:12 +0000 (12:24 +0200)
commit53c9dd4d2dcc77acbbaa0050f2d8617ad79d9fd3
tree4d2a01bf469c1f7b4fb784a90a8a0f0e9adf5cb1
parent4a1bdc72b9407898162da7e4370961f1ef2b3d0e
libcephfs.h: fix unnecessary forward declarations

This is an issue in case non-cpp code. Move the declaration of
inodeno_t and vinodeno_t structs into __cplusplus block where
they are needed.

Fix for cppcheck issue:

[src/include/cephfs/libcephfs.h:89] -> [src/include/cephfs/libcephfs.h:74]:
 The struct 'inodeno_t' forward declaration is unnecessary. Type struct is
 already declared earlier.
[src/include/cephfs/libcephfs.h:93] -> [src/include/cephfs/libcephfs.h:83]:
 The struct 'vinodeno_t' forward declaration is unnecessary. Type struct is
 already declared earlier.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/include/cephfs/libcephfs.h