Skip to content

Commit f809df2

Browse files
authored
Merge pull request ceph#57331 from ronen-fr/wip-rf-tier0
tests/librados: do not use '0' as a string Reviewed-by: Patrick Donnelly <[email protected]>
2 parents 81de105 + 9722737 commit f809df2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/librados/tier_cxx.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static inline void buf_to_hex(const unsigned char *buf, int len, char *str)
120120
}
121121

122122
void check_fp_oid_refcount(librados::IoCtx& ioctx, std::string foid, uint64_t count,
123-
std::string fp_algo = NULL)
123+
std::string fp_algo = std::string{})
124124
{
125125
bufferlist t;
126126
int size = foid.length();
@@ -148,7 +148,7 @@ void check_fp_oid_refcount(librados::IoCtx& ioctx, std::string foid, uint64_t co
148148
ASSERT_LE(count, refs.count());
149149
}
150150

151-
string get_fp_oid(string oid, std::string fp_algo = NULL)
151+
string get_fp_oid(string oid, std::string fp_algo = std::string{})
152152
{
153153
if (fp_algo == "sha1") {
154154
unsigned char fingerprint[CEPH_CRYPTO_SHA1_DIGESTSIZE + 1];

0 commit comments

Comments
 (0)