Return native error codes.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29133 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -2612,7 +2612,7 @@ status_t ABSApp::AddPositionIOToDatabase (
|
||||
sprintf (ErrorMessage, "The database is full! There are %lu messages in "
|
||||
"it and we can't add any more without overflowing the maximum integer "
|
||||
"representation in 32 bits", NewAge);
|
||||
return ENOMEM;
|
||||
return B_NO_MEMORY;
|
||||
}
|
||||
|
||||
/* Check that this file hasn't already been added to the database. */
|
||||
@@ -2724,7 +2724,7 @@ status_t ABSApp::AddPositionIOToDatabase (
|
||||
sprintf (ErrorMessage, "Failed to insert new database entry for "
|
||||
"word \"%s\", while processing file \"%s\"",
|
||||
WordIter->c_str (), OptionalFileName);
|
||||
return ENOMEM;
|
||||
return B_NO_MEMORY;
|
||||
}
|
||||
DataIter = InsertResult.first;
|
||||
m_WordCount++;
|
||||
|
||||
@@ -102,7 +102,7 @@ status_t Url::ParseAndSplit()
|
||||
|
||||
v = FindFirst(":");
|
||||
if (v < 0)
|
||||
return EINVAL;
|
||||
return B_BAD_VALUE;
|
||||
|
||||
// TODO: proto and host should be lowercased.
|
||||
// see http://en.wikipedia.org/wiki/URL_normalization
|
||||
|
||||
Reference in New Issue
Block a user