summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@inktank.com>2013-06-25 19:18:51 -0700
committerYehuda Sadeh <yehuda@inktank.com>2013-06-25 19:18:51 -0700
commit224130c9f7a3cf5a51f65afe2cfdf02f7459facd (patch)
tree207636feb8400452ab28c3ce6e5149119fc92575
parent1b162ce662572e4b2066bdc869a740f54c410d9f (diff)
downloadceph-224130c9f7a3cf5a51f65afe2cfdf02f7459facd.tar.gz
rgw (test): remove some warnings
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
-rw-r--r--src/test/test_rgw_admin_log.cc6
-rw-r--r--src/test/test_rgw_admin_meta.cc6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/test/test_rgw_admin_log.cc b/src/test/test_rgw_admin_log.cc
index 7c419e7d3c4..fe281025553 100644
--- a/src/test/test_rgw_admin_log.cc
+++ b/src/test/test_rgw_admin_log.cc
@@ -146,7 +146,7 @@ int test_helper::extract_input(int argc, char *argv[]){
void test_helper::set_response(char *r){
string sr(r), h, v;
- unsigned off = sr.find(": ");
+ size_t off = sr.find(": ");
if(off != string::npos){
h.assign(sr, 0, off);
v.assign(sr, off + 2, sr.find("\r\n") - (off+2));
@@ -198,7 +198,7 @@ static void calc_hmac_sha1(const char *key, int key_len,
static int get_s3_auth(string method, string creds, string date, string res, string& out){
string aid, secret, auth_hdr;
string tmp_res;
- unsigned off = creds.find(":");
+ size_t off = creds.find(":");
out = "";
if(off != string::npos){
aid.assign(creds, 0, off);
@@ -207,7 +207,7 @@ static int get_s3_auth(string method, string creds, string date, string res, str
/*sprintf(auth_hdr, "%s\n\n\n%s\n%s", req_type, date, res);*/
char hmac_sha1[CEPH_CRYPTO_HMACSHA1_DIGESTSIZE];
char b64[65]; /* 64 is really enough */
- unsigned off = res.find("?");
+ size_t off = res.find("?");
if(off == string::npos)
tmp_res = res;
else
diff --git a/src/test/test_rgw_admin_meta.cc b/src/test/test_rgw_admin_meta.cc
index f4002fb7bf9..3c9529ba72c 100644
--- a/src/test/test_rgw_admin_meta.cc
+++ b/src/test/test_rgw_admin_meta.cc
@@ -140,7 +140,7 @@ int test_helper::extract_input(int argc, char *argv[]){
void test_helper::set_response(char *r){
string sr(r), h, v;
- unsigned off = sr.find(": ");
+ size_t off = sr.find(": ");
if(off != string::npos){
h.assign(sr, 0, off);
v.assign(sr, off + 2, sr.find("\r\n") - (off+2));
@@ -192,7 +192,7 @@ static void calc_hmac_sha1(const char *key, int key_len,
static int get_s3_auth(string method, string creds, string date, string res, string& out){
string aid, secret, auth_hdr;
string tmp_res;
- unsigned off = creds.find(":");
+ size_t off = creds.find(":");
out = "";
if(off != string::npos){
aid.assign(creds, 0, off);
@@ -201,7 +201,7 @@ static int get_s3_auth(string method, string creds, string date, string res, str
/*sprintf(auth_hdr, "%s\n\n\n%s\n%s", req_type, date, res);*/
char hmac_sha1[CEPH_CRYPTO_HMACSHA1_DIGESTSIZE];
char b64[65]; /* 64 is really enough */
- unsigned off = res.find("?");
+ size_t off = res.find("?");
if(off == string::npos)
tmp_res = res;
else