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:
François Revol
2009-02-04 12:59:41 +00:00
parent 2bb68f8dc3
commit ae05e8e720
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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++;
+1 -1
View File
@@ -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