[Box Backup-commit] COMMIT r2453 - box/trunk/lib/httpserver
boxbackup-dev@boxbackup.org
boxbackup-dev@boxbackup.org
Mon, 16 Mar 2009 21:46:04 +0000 (GMT)
Author: chris
Date: 2009-03-16 21:46:03 +0000 (Mon, 16 Mar 2009)
New Revision: 2453
Modified:
box/trunk/lib/httpserver/HTTPRequest.cpp
Log:
Fix type of string position variable to avoid failure (and warning) on
platforms where size_t is signed, e.g. FreeBSD.
Modified: box/trunk/lib/httpserver/HTTPRequest.cpp
===================================================================
--- box/trunk/lib/httpserver/HTTPRequest.cpp 2009-03-15 22:45:45 UTC (rev 2452)
+++ box/trunk/lib/httpserver/HTTPRequest.cpp 2009-03-16 21:46:03 UTC (rev 2453)
@@ -121,10 +121,10 @@
// 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)