From ae05e8e72073709affc8c1330f14b8a0638ad29d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Wed, 4 Feb 2009 12:59:41 +0000 Subject: [PATCH] Return native error codes. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29133 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/bemail_utils/spamdbm.cpp | 4 ++-- src/bin/urlwrapper.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/bemail_utils/spamdbm.cpp b/src/bin/bemail_utils/spamdbm.cpp index e70cd0abab..85b067f256 100644 --- a/src/bin/bemail_utils/spamdbm.cpp +++ b/src/bin/bemail_utils/spamdbm.cpp @@ -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++; diff --git a/src/bin/urlwrapper.cpp b/src/bin/urlwrapper.cpp index 63343b9967..75178f6afc 100644 --- a/src/bin/urlwrapper.cpp +++ b/src/bin/urlwrapper.cpp @@ -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