Skip to content

Commit

Permalink
fix compile error on centos7
Browse files Browse the repository at this point in the history
  • Loading branch information
hurley25 committed Feb 7, 2018
1 parent a0dd536 commit 5cce166
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/common/httpclient.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ class HttpWebResponse {

class HttpWebRequest {
public:
typedef struct {
struct Method {
const static std::string POST;
const static std::string GET;
const static std::string DELETE;
} Method;
};
public:
inline static HttpWebRequest *Create(std::string &uri) {
return new HttpWebRequest(uri);
Expand Down
2 changes: 1 addition & 1 deletion src/common/util.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ class BitMap {
}

void reset() {
memset(data_, byte_size(), 0);
memset(data_, 0, byte_size());
}

void reset(int32_t p) {
Expand Down
2 changes: 2 additions & 0 deletions src/storage/ldb/leveldb/db/version_set.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ static int64_t TotalFileSize(const std::vector<FileMetaData*>& files) {
return sum;
}

#if 0
namespace {
std::string IntSetToString(const std::set<uint64_t>& s) {
std::string result = "{";
Expand All @@ -64,6 +65,7 @@ std::string IntSetToString(const std::set<uint64_t>& s) {
return result;
}
} // namespace
#endif

Version::~Version() {
assert((int32_t)refs_.Get() == 0);
Expand Down

0 comments on commit 5cce166

Please # to comment.