summaryrefslogtreecommitdiff
path: root/lib/httpserver
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2009-03-16 21:46:03 +0000
committerChris Wilson <chris+github@qwirx.com>2009-03-16 21:46:03 +0000
commit1fce3a564b9a519ef95bdb5173b7fbefa6493c51 (patch)
tree05e69af74357f6e6896a4c01694bbc8c5fbbf8e8 /lib/httpserver
parent162d50a4734f7833efc684e1ee7021ed98fc63ab (diff)
Fix type of string position variable to avoid failure (and warning) on
platforms where size_t is signed, e.g. FreeBSD.
Diffstat (limited to 'lib/httpserver')
-rw-r--r--lib/httpserver/HTTPRequest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/httpserver/HTTPRequest.cpp b/lib/httpserver/HTTPRequest.cpp
index 6154a4d1..e146a0a3 100644
--- a/lib/httpserver/HTTPRequest.cpp
+++ b/lib/httpserver/HTTPRequest.cpp
@@ -121,10 +121,10 @@ bool HTTPRequest::Receive(IOStreamGetLine &rGetLine, int Timeout)
// Didn't get the request line, probably end of connection which had been kept alive
return false;
}
-// TRACE1("Request line: %s\n", requestLine.c_str());
+ BOX_TRACE("Request line: " << requestLine);
// Check the method
- unsigned int p = 0; // current position in string
+ size_t p = 0; // current position in string
p = requestLine.find(' '); // end of first word
if (p == std::string::npos)