From: Danny Al-Gaaf Date: Thu, 28 Jan 2016 12:57:01 +0000 (+0100) Subject: rgw/rgw_rest.cc: fix -Wsign-compare X-Git-Tag: v10.0.4~86^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=65ed19275876de659392573e4109376744b9670d;p=ceph.git rgw/rgw_rest.cc: fix -Wsign-compare Signed-off-by: Danny Al-Gaaf --- diff --git a/src/rgw/rgw_rest.cc b/src/rgw/rgw_rest.cc index d19d380d0b39..00972950150d 100644 --- a/src/rgw/rgw_rest.cc +++ b/src/rgw/rgw_rest.cc @@ -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;