diff options
Diffstat (limited to 'chrome/browser/safe_browsing/protocol_parser.cc')
| -rw-r--r-- | chrome/browser/safe_browsing/protocol_parser.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/safe_browsing/protocol_parser.cc b/chrome/browser/safe_browsing/protocol_parser.cc index 8f44267..fb24ffb 100644 --- a/chrome/browser/safe_browsing/protocol_parser.cc +++ b/chrome/browser/safe_browsing/protocol_parser.cc @@ -6,10 +6,12 @@ // TODOv3(shess): Review these changes carefully. +#include <stdint.h> #include <stdlib.h> #include "base/format_macros.h" #include "base/logging.h" +#include "base/macros.h" #include "base/strings/string_number_conversions.h" #include "base/strings/string_split.h" #include "base/strings/stringprintf.h" @@ -72,8 +74,8 @@ class BufferReader { return true; } - // Read a 32-bit integer in network byte order into a local uint32. - bool GetNet32(uint32* i) { + // Read a 32-bit integer in network byte order into a local uint32_t. + bool GetNet32(uint32_t* i) { if (!GetData(i, sizeof(*i))) return false; @@ -354,7 +356,7 @@ bool ParseChunk(const char* data, BufferReader reader(data, length); while (!reader.empty()) { - uint32 l = 0; + uint32_t l = 0; if (!reader.GetNet32(&l) || l == 0 || l > reader.length()) return false; |
