]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rgw_rest.cc: fix -Wsign-compare
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 28 Jan 2016 12:57:01 +0000 (13:57 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 29 Jan 2016 20:51:17 +0000 (21:51 +0100)
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/rgw/rgw_rest.cc

index d19d380d0b39b3834b280972bf8bfc9c4a250dcd..00972950150d027bedbbda2023abb2d083501ad1 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 int i = 0; i < t.size(); i++) {
     char ch = p[i];
     if (!(isalnum(ch) || ch == '_'))
       return -ERR_INVALID_TENANT_NAME;