version: fix const warning

Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
This commit is contained in:
Sage Weil 2011-03-05 20:40:55 -08:00
parent aa251bd6ac
commit 69c7e59cb7
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}

View File

@ -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);