mirror of
https://github.com/ceph/ceph
synced 2024-12-14 23:46:28 +00:00
version: fix const warning
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
This commit is contained in:
parent
aa251bd6ac
commit
69c7e59cb7
@ -22,12 +22,12 @@
|
||||
#define _STR(x) #x
|
||||
#define STRINGIFY(x) _STR(x)
|
||||
|
||||
const char * const ceph_version_to_str(void)
|
||||
const char *ceph_version_to_str(void)
|
||||
{
|
||||
return VERSION;
|
||||
}
|
||||
|
||||
const char * const git_version_to_str(void)
|
||||
const char *git_version_to_str(void)
|
||||
{
|
||||
return STRINGIFY(CEPH_GIT_VER);
|
||||
}
|
||||
|
@ -18,10 +18,10 @@
|
||||
#include <string>
|
||||
|
||||
// Return a string describing the Ceph version
|
||||
const char * const ceph_version_to_str(void);
|
||||
const char *ceph_version_to_str(void);
|
||||
|
||||
// Return a string describing the git version
|
||||
const char * const git_version_to_str(void);
|
||||
const char *git_version_to_str(void);
|
||||
|
||||
// Return a formatted string describing the ceph and git versions
|
||||
std::string const pretty_version_to_str(void);
|
||||
|
Loading…
Reference in New Issue
Block a user