| Index: net/tools/balsa/balsa_frame.cc
|
| diff --git a/net/tools/balsa/balsa_frame.cc b/net/tools/balsa/balsa_frame.cc
|
| index 96e91935597b734b39088d26bd10a8f6614dba25..463a678dead95cab698cda50771efa3307b861ec 100644
|
| --- a/net/tools/balsa/balsa_frame.cc
|
| +++ b/net/tools/balsa/balsa_frame.cc
|
| @@ -8,7 +8,6 @@
|
| #if __SSE2__
|
| #include <emmintrin.h>
|
| #endif // __SSE2__
|
| -#include <strings.h>
|
|
|
| #include <limits>
|
| #include <string>
|
| @@ -26,6 +25,13 @@
|
| #include "net/tools/balsa/split.h"
|
| #include "net/tools/balsa/string_piece_utils.h"
|
|
|
| +#if defined(COMPILER_MSVC)
|
| +#include <string.h>
|
| +#define strncasecmp _strnicmp
|
| +#else
|
| +#include <strings.h>
|
| +#endif
|
| +
|
| namespace net {
|
|
|
| // Constants holding some header names for headers which can affect the way the
|
| @@ -426,7 +432,7 @@ void BalsaFrame::ProcessFirstLine(const char* begin, const char* end) {
|
| }
|
|
|
| if (is_request_) {
|
| - int version_length =
|
| + size_t version_length =
|
| headers_->whitespace_4_idx_ - headers_->non_whitespace_3_idx_;
|
| visitor_->ProcessRequestFirstLine(
|
| begin + headers_->non_whitespace_1_idx_,
|
| @@ -1556,9 +1562,4 @@ size_t BalsaFrame::ProcessInput(const char* input, size_t size) {
|
| return current - input;
|
| }
|
|
|
| -const uint32 BalsaFrame::kValidTerm1;
|
| -const uint32 BalsaFrame::kValidTerm1Mask;
|
| -const uint32 BalsaFrame::kValidTerm2;
|
| -const uint32 BalsaFrame::kValidTerm2Mask;
|
| -
|
| } // namespace net
|
|
|