From 1fce3a564b9a519ef95bdb5173b7fbefa6493c51 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 16 Mar 2009 21:46:03 +0000 Subject: Fix type of string position variable to avoid failure (and warning) on platforms where size_t is signed, e.g. FreeBSD. --- lib/httpserver/HTTPRequest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/httpserver') 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) -- cgit v1.2.3