From: <dtr...@us...> - 2007-09-08 01:34:47
|
Revision: 15821 http://bzflag.svn.sourceforge.net/bzflag/?rev=15821&view=rev Author: dtremenak Date: 2007-09-07 18:34:50 -0700 (Fri, 07 Sep 2007) Log Message: ----------- re-fix warnings Modified Paths: -------------- trunk/bzflag/plugins/plugin_utils/plugin_HTTP.cpp Modified: trunk/bzflag/plugins/plugin_utils/plugin_HTTP.cpp =================================================================== --- trunk/bzflag/plugins/plugin_utils/plugin_HTTP.cpp 2007-09-08 01:27:57 UTC (rev 15820) +++ trunk/bzflag/plugins/plugin_utils/plugin_HTTP.cpp 2007-09-08 01:34:50 UTC (rev 15821) @@ -45,7 +45,7 @@ // see if I am the indexer or not if (!bz_clipFieldExists ( "BZFS_HTTPD_INDEXER" ) || bz_getclipFieldString("BZFS_HTTPD_INDEXER")[0] == 0) - bz_setclipFieldString("BZFS_HTTPD_INDEXER",format("%d",(int)this).c_str()); + bz_setclipFieldString("BZFS_HTTPD_INDEXER",format("%p",this).c_str()); } BZFSHTTPServer::~BZFSHTTPServer() @@ -55,7 +55,7 @@ // clear out the if (bz_clipFieldExists ( "BZFS_HTTPD_INDEXER" )) { - std::string myThis = format("%d",(int)this); + std::string myThis = format("%p",this); if (bz_getclipFieldString("BZFS_HTTPD_INDEXER") == myThis) bz_setclipFieldString("BZFS_HTTPD_INDEXER",""); } @@ -185,7 +185,7 @@ { if (acceptURL(theCurrentCommand->URL.c_str())) { - int requestID = user->connection * 100 + user->pendingCommands.size(); + int requestID = user->connection * 100 + (int)user->pendingCommands.size(); getURLData ( theCurrentCommand->URL.c_str(), requestID, params, theCurrentCommand->request == eGet ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |