author | Michael Krelin <hacker@klever.net> | 2009-04-11 16:31:52 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2009-04-11 16:31:52 (UTC) |
commit | 10456ef16b0ef9d2288309127c1b6f356ace3f0b (patch) (side-by-side diff) | |
tree | 09532917a39319ada79f445f7cd2d58868f98bfe /lib/discovery.cc | |
parent | 2f606a6221accb289b4e7982d57b04437190fda0 (diff) | |
download | libopkele-10456ef16b0ef9d2288309127c1b6f356ace3f0b.zip libopkele-10456ef16b0ef9d2288309127c1b6f356ace3f0b.tar.gz libopkele-10456ef16b0ef9d2288309127c1b6f356ace3f0b.tar.bz2 |
make compiler a bit happier
Signed-off-by: Michael Krelin <hacker@klever.net>
-rw-r--r-- | lib/discovery.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/discovery.cc b/lib/discovery.cc index 26f3eed..b4ed3b6 100644 --- a/lib/discovery.cc +++ b/lib/discovery.cc @@ -564,47 +564,47 @@ namespace opkele { if(id.xri_identity) { if(iu->second.append=="qxri") { ep.uri += id.normalized_id; } /* TODO: else handle other append attribute values */ } if(st->forceid) { ep.local_id = ep.claimed_id = st->forceid; *(oi++) = ep; }else{ if(svc.local_ids.empty()) { ep.local_id = ep.claimed_id; *(oi++) = ep; }else{ for(xrd::local_ids_t::const_iterator ilid=svc.local_ids.begin(); ilid!=svc.local_ids.end(); ++ilid) { ep.local_id = ilid->second; *(oi++) = ep; } } } } } } - int unknown_encoding(const XML_Char *n,XML_Encoding *i) { - for(int ii=0;ii < sizeof(i->map)/sizeof(i->map[0]);++ii) + int unknown_encoding(const XML_Char* /* n */,XML_Encoding *i) { + for(unsigned int ii=0;ii < sizeof(i->map)/sizeof(i->map[0]);++ii) i->map[ii] = ii; i->convert = 0; i->release = 0; return XML_STATUS_OK; } }; string idiscover(endpoint_discovery_iterator oi,const string& identity) { idigger_t idigger; return idigger.discover(oi,identity); } void yadiscover(endpoint_discovery_iterator oi,const string& yurl,const char **types,bool redirs) try { idigger_t idigger; idigger.yadiscover(oi,yurl,types,redirs); }catch(exception_curl& ec) { if(redirs || ec._error!=CURLE_TOO_MANY_REDIRECTS) throw; } } |