]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw: fix the signed/unsigned comparison warning
authorKefu Chai <kchai@redhat.com>
Sat, 30 Jan 2016 17:38:51 +0000 (01:38 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 31 Jan 2016 04:18:41 +0000 (12:18 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/rgw/rgw_rest.cc

index d19d380d0b39b3834b280972bf8bfc9c4a250dcd..e2cb905847b4da9dadb60e10774d1bfc32db76d4 100644 (file)
@@ -1290,7 +1290,7 @@ int RGWHandler_ObjStore::allocate_formatter(struct req_state *s, int default_typ
 int RGWHandler_ObjStore::validate_tenant_name(string const& t)
 {
   const char *p = t.c_str();
-  for (int i = 0; i < t.size(); i++) {
+  for (unsigned i = 0; i < t.size(); i++) {
     char ch = p[i];
     if (!(isalnum(ch) || ch == '_'))
       return -ERR_INVALID_TENANT_NAME;