Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(92)

Unified Diff: net/http/http_auth_gssapi_posix.cc

Issue 3473006: Fix a bunch of clang warnings/errors. (Closed)
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« chrome/browser/spellcheck_host.cc ('K') | « net/disk_cache/entry_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_auth_gssapi_posix.cc
diff --git a/net/http/http_auth_gssapi_posix.cc b/net/http/http_auth_gssapi_posix.cc
index db8f71287b386d2c3e05a39a7624194a4f11aa3b..d6f73c4fb0d62e42016eb296ecf82c930b692dd5 100644
--- a/net/http/http_auth_gssapi_posix.cc
+++ b/net/http/http_auth_gssapi_posix.cc
@@ -299,42 +299,6 @@ std::string DescribeOid(GSSAPILibrary* gssapi_lib, const gss_OID oid) {
return output;
}
-std::string DescribeBuffer(const gss_buffer_t buffer) {
- if (!buffer)
- return "<NULL>";
- size_t length = buffer->length;
- std::string output(StringPrintf("(%" PRIuS ") ", length));
- if (!buffer->value) {
- output += "<NULL>";
- return output;
- }
- const char* value =
- reinterpret_cast<const char*>(buffer->value);
- bool is_printable = true;
- for (size_t i = 0; i < length; ++i) {
- if (!isprint(value[i])) {
- // Allow the last character to be a '0'.
- if ((i < (length - 1)) && !value[i])
- continue;
- is_printable = false;
- break;
- }
- }
- if (is_printable) {
- output += "\"";
- output += value;
- output += "\"";
- } else {
- output += "[";
- for (size_t i = 0; i < buffer->length; ++i) {
- output += StringPrintf("\\x%02X", value[i] & 0x0FF);
- }
- output += "]";
- }
-
- return output;
-}
-
std::string DescribeName(GSSAPILibrary* gssapi_lib, const gss_name_t name) {
OM_uint32 major_status = 0;
OM_uint32 minor_status = 0;
« chrome/browser/spellcheck_host.cc ('K') | « net/disk_cache/entry_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698