0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
This commit is contained in:
Dwight 2010-04-20 15:41:47 -04:00
parent a2ab816f8e
commit 9f7f0be204
3 changed files with 6 additions and 6 deletions

View File

@ -465,7 +465,7 @@ namespace mongo {
#endif
{
const char * foo = strstr( versionString , "." ) + 1;
const char * foo = strchr( versionString , '.' ) + 1;
int bar = atoi( foo );
if ( ( 2 * ( bar / 2 ) ) != bar ){
cout << "****\n"

View File

@ -137,8 +137,8 @@ namespace mongo {
const char *ns = r.getns();
if ( r.isShardingEnabled() &&
strstr( ns , ".system.indexes" ) == strstr( ns , "." ) &&
strstr( ns , "." ) ){
strstr( ns , ".system.indexes" ) == strchr( ns , '.' ) &&
strchr( ns , '.' ) ) {
log(1) << " .system.indexes write for: " << ns << endl;
handleIndexWrite( op , r );
return;

View File

@ -28,13 +28,13 @@ namespace mongo {
{}
string MiniWebServer::parseURL( const char * buf ) {
const char * urlStart = strstr( buf , " " );
const char * urlStart = strchr( buf , ' ' );
if ( ! urlStart )
return "/";
urlStart++;
const char * end = strstr( urlStart , " " );
const char * end = strchr( urlStart , ' ' );
if ( ! end ) {
end = strchr( urlStart , '\r' );
if ( ! end ) {
@ -82,7 +82,7 @@ namespace mongo {
}
string MiniWebServer::parseMethod( const char * headers ) {
const char * end = strstr( headers , " " );
const char * end = strchr( headers , ' ' );
if ( ! end )
return "GET";
return string( headers , (int)(end-headers) );