-rw-r--r-- | lib/consumer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/consumer.cc b/lib/consumer.cc index d578546..7881f5f 100644 --- a/lib/consumer.cc +++ b/lib/consumer.cc | |||
@@ -368,25 +368,25 @@ namespace opkele { | |||
368 | if(!server.empty()) { | 368 | if(!server.empty()) { |
369 | gotit = true; | 369 | gotit = true; |
370 | break; | 370 | break; |
371 | } | 371 | } |
372 | } | 372 | } |
373 | if(ns==string::npos) break; | 373 | if(ns==string::npos) break; |
374 | } | 374 | } |
375 | } | 375 | } |
376 | if(server.empty()) | 376 | if(server.empty()) |
377 | throw failed_assertion(OPKELE_CP_ "The location has no openid.server declaration"); | 377 | throw failed_assertion(OPKELE_CP_ "The location has no openid.server declaration"); |
378 | } | 378 | } |
379 | 379 | ||
380 | assoc_t consumer_t::find_assoc(const string& server) { | 380 | assoc_t consumer_t::find_assoc(const string& /* server */) { |
381 | throw failed_lookup(OPKELE_CP_ "no find_assoc() provided"); | 381 | throw failed_lookup(OPKELE_CP_ "no find_assoc() provided"); |
382 | } | 382 | } |
383 | 383 | ||
384 | string consumer_t::normalize(const string& url) { | 384 | string consumer_t::normalize(const string& url) { |
385 | string rv = url; | 385 | string rv = url; |
386 | // strip leading and trailing spaces | 386 | // strip leading and trailing spaces |
387 | string::size_type i = rv.find_first_not_of(" \t\r\n"); | 387 | string::size_type i = rv.find_first_not_of(" \t\r\n"); |
388 | if(i==string::npos) | 388 | if(i==string::npos) |
389 | throw bad_input(OPKELE_CP_ "empty URL"); | 389 | throw bad_input(OPKELE_CP_ "empty URL"); |
390 | if(i) | 390 | if(i) |
391 | rv.erase(0,i); | 391 | rv.erase(0,i); |
392 | i = rv.find_last_not_of(" \t\r\n"); | 392 | i = rv.find_last_not_of(" \t\r\n"); |